t, l, a = list(input().split()) print((t[0] + l[0] + a[0]).upper())