<reponame>Manthanc007/APS-2o2o<filename>aps2.py<gh_stars>0
t=input()
n=len(t)
c=0
for i in t:
    if i.islower():
        c=c+1
print(t.upper())
print(c)        

t=input()
n=len(t)
c=0
for i in t:
    if i.islower():
        c=c+1
print(t.upper())
print(c)