# Programming Assignments-1: Sentence

'''
	Question : Write a program that accepts sequence of lines as input andprints the lines after making all characters in the sentence capitalised.
'''

# Code

n=int(input())
for i in range(n):
  print(input().upper())