try: while True: r=input() for c in r:r=c[c.swapcase()==r!=c:];print(end=r) print() # Separate test cases by linefeeds.except: pass
bBaAdD NniIcCeE Tt eE Ss tT sS Ee tT 1!1!1sStT! nN00bB (eE.gG.) Hh3lL|@! Aaa aaaaa aaAaa
bad Nice T e S t s E t 1!1!1st! n00b (e.g.) H3l|@! Aa aaaaa aaaa
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!