#"\n"自动换行
a=input()
print(a.lower()+"\n"+a.upper()+"\n"+a.title()+"\n")