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