#46052: Python超級簡單解


chunyutsai97@gmail.com (淳)


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