#capslock S=list(input()) U=[] for i in range(len(S)): U.append(upper(S[i])) for i in range(len(S)): if U[i]==S[i]: U[i]=lower(U[i]) A="" for i in range(len(U)): A+=U[i] print(A)