S=input() a=[c for c in S] p=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'] q=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'] t=len(a) for i in range(0,t): for j in range(0,26): if a[i]==p[j]: a[i]=q[j] elif a[i]==q[j]: a[i]=p[j] break b = ' ' for x in a: b += x print(b)