l = "abcdefghijklmnopqrstuvwxyz" u = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" word = input() ans = [] for i in word: if i in l: idx = l.index(i) ans.append(u[idx]) else: idx = u.index(i) ans.append(l[idx]) print("".join(ans))