for s in input().split(): print(s[0].upper(), end="") print()