1def swap_case(s):
2 for i in range (len(s)):
3 if s[i].isupper():
4 return s[i].lower()
5 elif s[i].islower():
6 return s[i].upper()
7 else:
8 return s[i]
9s=input()
10swap_case(s)
11print("".join(map(swap_case,s)))