S = input() reS = S[-1 : : -1] lst = [] for i in reS: if i == '<': lst.append('>') elif i == '>': lst.append('<') result = ''.join(lst) print(result)