while 1: s=raw_input();t="" for c in s:t+="<> "[t.count("<")/s.count("<")|-(c<"!")] print t