for(_=readline(i=-4);++i<7;print(o))for(o=x='';n=_[x++];)o+=i%3|i==3?i-~(i<0?n>4:-n%5-2)?'<->':' | ':_[-1]-x&3|i?'===':'=*='