S = list(input()) rev = [] #鏡像の保管場所 for i in reversed(S): if i == '<': x = '>' rev.append(x) elif i == '>': x = '<' rev.append(x) print(''.join(rev))