# Challenge: toggle case of letters in string. 10 points, 1 min

def SwapCase(str):
  return str.swapcase()

# keep this function call here
# to see how to enter arguments in Python scroll down
print SwapCase(raw_input())
