c=input().split() A=c[0] A=ord(A) if ord('a')<=A and ord('z')>=A : print(chr(A-32)) else : print(chr(A+32))