'''
@Author: your name
@Date: 2020-07-06 11:29:47
@LastEditTime: 2020-07-06 23:25:41
@LastEditors: Please set LastEditors
@Description: In User Settings Edit
@FilePath: \vscode_py\day2.py
'''
import numpy as np


# Question4:
# Write a program which accepts a sequence of comma-separated numbers
# from console and generate a list and a tuple which contains every number.
# Suppose the following input is supplied to the program:

def Q4():
l=input().split(',')
# l=np.loadtxt("test.txt",comments="#",delimiter=',')

t=tuple(l)

print(l)
print(t)


# Question5:
# Define a class which has at least two methods:

# getString: to get a string from console input
# printString: to print the string in upper case.
# Also please include simple test function to test the class methods.

class Q5():
def get_str(self):
self.str=input()

def print_str(self):
print(self.str.upper()) # 输出大写


# Question6:
# Write a program that calculates and prints the value according to the given formula:

# Q = Square root of [(2 _ C _ D)/H]

# Following are the fixed values of C and H:

# C is 50. H is 30.

# D is the variable whose values should be input to your program in a comma-separated sequence.
# For example Let us assume the following comma separated input sequence is given to the program:


import math
def cal(D):
C,H = 50,30
return math.sqrt((2*C*D)/H)

def Q6():

l=input().split(',')
print(l)
l=[int(i) for i in l]
print(l)
l=[cal(i) for i in l]
print(l)
l=[round(i) for i in l]
print(l)
l=[str(i) for i in l]
print(','.join(l)) # join合并的sequence只能是字符,因此上一步需要把它变为str()

# Question 7
# 输入row,col,生成一个row*col的矩阵,这个矩阵在对应的位置上的数字为行和列的乘积
def Q7():
import numpy as np
x,y=map(int,input().split(','))

print(x,y)
arr=[]
for num in range(0,x):
tmp=[]
for j in range(0,y):
tmp.append(int(num*j))
arr.append(tmp)
print(np.asarray(arr))


# Question 8
# 输入一个逗号隔开的字母序列,输出排序后的序列
def Q8():
# input_seq=[x for x in input().split(',')]
input_seq=input().split(',')

print(input_seq)
input_seq.sort()
print(','.join(input_seq))


# Question9:
# Write a program that accepts sequence of lines as input
# and prints the lines after making all characters in the sentence capitalized.
# 输入句子序列,变为大写并打印

def Q9():
lines=[]
while(1):
s=input()
if s:
lines.append(s.upper())
else:
break
for line in lines:
print(line)


if __name__ == "__main__":
# Q4()

# q5=Q5()
# q5.get_str()
# q5.print_str()

# Q6()

# Q7()

# Q8()

Q9()