for(;[a,b]=readline(x='0x').split('= ');print(a+'=',b))x+a>x+b-0?b=x+b:a=x+a