a,b,c = input().split()

ans = a[0]+b[0]+c[0]

print((ans.upper()))
a,b,c = input().split()

print(((a[0] + b[0] + c[0]).upper()))

a, b, c = input().split()
ans = a[0] + b[0] + c[0]
print((ans.upper()))

a, b, c = input().split()
print(((a[0] + b[0] + c[0]).upper()))

-ans = a[0] + b[0] + c[0] -print((ans.upper())) +print(((a[0] + b[0] + c[0]).upper()))