inStr,outStr = "", ""
Ucnt,Lcnt,Ncnt,Kcnt,cnt=0,0,0,0,0
inStr = input("๋ฌธ์์ด => ")
for ch in inStr :
if (ord(ch)>=ord("A") and ord(ch) <=ord("Z")):
Ucnt += 1
elif (ord(ch)>=ord("a") and ord(ch) <=ord("z")):
Lcnt += 1
elif (ord(ch)>=ord("0") and ord(ch) <=ord("9")):
Ncnt += 1
elif (ord(ch)>=ord("ใฑ") and ord(ch) <=ord("ํฃ")):
Kcnt += 1
else :
cnt += 1
print("๋๋ฌธ์ = %d" % Ucnt)
print("์๋ฌธ์ = %d" % Lcnt)
print("์ซ์ = %d" % Ncnt)
print("ํ๊ธ = %d" % Kcnt)
print("๊ธฐํ = %d" % cnt)