s=input() t="" for c in s[::-1]: t+="><"[c=='>'] print(t)