while 1: j=i=0;s=input();a='' while s[i:]:i+=1;c=s.find(str(i));c+=c>=j;a+=("<>%d"%(j-c))[j