char*b,a[99];main(){for(;b=gets(a);puts(a))for(;*b;*b++^=!index(b+1,48));}