S = input() a = '<>' ans = '' for s in S: ans = a[(a.index(s) + 1) % 2] + ans print(ans)