import sys st=input() print(st.lower()) print(st.upper()) print(st.title()) for line in sys.stdin: a = line.split() print(int(a[0]) + int(a[1]))