



import numpy as np

import math





s=" "+input()

for i in range(len(s)):

    if(s[i]==" "):

        print(chr(ord(s[i+1])-32),end="")

print()





import numpy as np

import math



a=input().split()

for s in a:

    print(s[0].upper(),end="")

print()

import numpy as np
import math

s = " " + input()
for i in range(len(s)):
    if s[i] == " ":
        print(chr(ord(s[i + 1]) - 32), end="")
print()

import numpy as np
import math

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

-s = " " + input() -for i in range(len(s)): -    if s[i] == " ": -        print(chr(ord(s[i + 1]) - 32), end="") +a = input().split() +for s in a: +    print(s[0].upper(), end="")