while 1:print reduce(lambda x,y:x+'=><'[cmp(x[-1],y)]+y,raw_input()[::2])