import sys


def convert(b:str):
    print(b.lower())
    print(b.upper())
    print(b.title())

a=convert(input())