S = input() p =[chr( ord(x)^0x20) for x in S] print ("".join(p))