a=input()
b=a.lower()#全部小写
c=a.upper()#全部大写
d=a.title()#每个单词首字母大写
# e=a.capitalize()首字母大写
print(b)
print(c)
print(d)