s=raw_input() def ToUpper(s): t="" d="" for i in range(len(s)): b="qwertyuiopasdfghjklzxcvbnm" f="QWERTYUIOPASDFGHJKLZXCVBNM" for j in range(len(b)): for l in range(len(f)): if j==l and s[i]==b[j]: t=f[l] if j==l and s[i]==f[l]: t=b[j] if s[i]!=b[j] and s[i]!=f[l]: t=s[i] d=d+t return d print ToUpper(s) raw_input()