s1,s2,s3=input().split()

s1=s1.upper()

s2=s2.upper()

s3=s3.upper()

print((s1[0]+s2[0]+s3[0]))
s1,s2,s3=input().split()

print((s1[0].upper()+s2[0].upper()+s3[0].upper()))
s1, s2, s3 = input().split()
s1 = s1.upper()
s2 = s2.upper()
s3 = s3.upper()
print((s1[0] + s2[0] + s3[0]))

s1, s2, s3 = input().split()
print((s1[0].upper() + s2[0].upper() + s3[0].upper()))

-s1 = s1.upper() -s2 = s2.upper() -s3 = s3.upper() -print((s1[0] + s2[0] + s3[0])) +print((s1[0].upper() + s2[0].upper() + s3[0].upper()))