














##while True:
## print(“List-1, Tahed-2, Reverse-3, Count/len-4, Full name-5, Remove-6, Index-7”)
## valik=int(input())
## if valik==1:
## nimi=input(“Tell me your name, my friend=>”)
## nimi_list=list(nimi.capitalize())
## print(nimi_list)
## elif valik==2:
## nimi=input(“Tell me your name, my friend=>”)
## tahed=[]
## nimi_list=list(nimi.capitalize())
## for taht in nimi_list:
## if taht.lower() not in tahed:
## tahed.append(taht.lower())
## print(tahed)
## elif valik==3:
## nimi=input(“Gimme a word to flip”)
## sona=list(nimi)
## sona.reverse()
## print(sona)
## elif valik==4:
## nimi=input(“Tell me your name, my friend=>”)
## tahed=[]
## nimi_list=list(nimi.capitalize())
## for taht in nimi_list:
## if taht.lower() not in tahed:
## tahed.append(taht.lower())
## print(“Name lenght:”, len(nimi))
## print(“Unique letters:”, len(tahed))
## elif valik==5:
## nimi=input(“Tell me your name, my friend=>”)
## perenimi=input(“Tell me your surname now=>”)
## nimi_list=list(nimi)
## pnimi_list=list(perenimi)
## nimi_list.extend(pnimi_list)
## print(nimi_list)
## elif valik==6:
## sona=list(input(“Input a word=>”))
## valik=input(“Wanna delete the ’index’ or ‘letter’? “)
## if valik.lower()==”index”:
## i=int(input(“Input index”))
## print(“Removing”, sona[i-1])
## sona.pop(i-1) #starts from 0
## else:
## t=input(“Input a letter=>”)
## sona.remove(t)
## print(sona)
## elif valik==7:
## sona=list(input(“Input a word=>”))
## t=input(“Input a letter=>”)
## print(“Letter”, t, “is in “, sona.index(t)+1, “. place”)
##for same letters in the word
#### elif valik==7:
#### sona=list(input(“Input a word=>”))
#### t=input(“Input a letter=>”)
#### i=0
#### for taht in sona:
#### i+=1
#### if taht==t:
#### print(“Letter”, t, “is in “, i, “. place”)
while True:
code=list(input(“Input your ID code=>”))
if len(code)==11 and int(code[0]) in [1,2,3,4,5,6]:
m=(code[3])+(code[4])
d=(code[5])+(code[6])
if 1<=int(m)<31 and 1<=int(d)<=31:
if int(code[0])%2==0:
print(“Female”)
if int(code[0])==6:
y=”20″
elif int(code[0])==4:
y=”19″
elif int(code[0])==2:
y=”18″
else:
print(“Male”)
if int(code[0])==5:
y=”20″
elif int(code[0])==3:
y=”19″
elif int(code[0])==1:
y=”18″
print(y+code[1]+code[2],”year”, m+”.”,d+”.”)
for i in range(10):
print(i,”=”,code.count(str(i)))
else:
print(“Invalid date”
else:
print(“Invalid ID code”)