1 2 3 4 5 6
#!/usr/bin/env python import sys while True: x = raw_input () print x.swapcase() sys.stdout.flush()