count = 1
s = input()
for i in s:
    if i.isupper():
        count = count + 1
print(count)

452e5c9c16dfade85391d2eb6463992759249ae7
<mask token>

<mask token>
for i in s:
    if i.isupper():
        count = count + 1
print(count)

count = 1
s = input()
for i in s:
    if i.isupper():
        count = count + 1
print(count)
