a = map(int, input().split()) print(a.swapcase())