l = input()
lst = []
while l != '.':
lst.append(l)
l = input()
lst = '\n'.join(lst)
lst = lst.upper()
print(*lst)
l = input()
lst = []
while l != '.':
lst.append(l)
l = input()
for item in lst:
output = ''
for letter in item:
output +=letter.upper() + ' '
print(output)