s = input() l = [] for i in s: l.append(['>', '<'][i == '>']) print(''.join(l)[::-1])