s = '' for i in input()[::-1]: s += ['<', '>'][i == '<'] print(s)