while 1:h=k=0;l=1;exec'%s,;h,k,l=l,h,k;print '%raw_input().replace('2','2*')*4