x = input()
print(x.lower(),x.upper(),x.title(),sep='\n')

lower()#全部小写
upper()#全部大写
title()#所有首字母大写
capitalize()#首字母大写
sep='/n'#以/n分隔字符串