for(;l=readline(s='',p=32);print(s))for(i in l)s+=String.fromCharCode(p=l.charCodeAt(i)^~p&32)