while 1: a=`input()`;p=0;s="" for c in sorted(a):i=a.find(c);i+=i>=p;s+="><"[i