from sys import stdin def corr str if len str return no if not str isa

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from sys import stdin
def corr(str):
if len(str) < 8:
return "no"
if not str.isalnum():
return "no"
big = False
little = False
digit = False
for i in str:
if ord("z") >= ord(i) >= ord("a"):
little = True
if ord("Z") >= ord(i) >= ord("A"):
big = True
if ord("9") >= ord(i) >= ord("0"):
digit = True
if big and little and digit:
return "yes"
else:
return "no"
s = stdin.readline().strip()
print(corr(s))