a, b, c = list(map(str, input().split()))

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

a, b, c = list(map(str, input().split()))

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

a, b, c = list(map(str, input().split()))
print((a[0] + b[0] + c[0]))

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

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