S = input()[::-1] for c in S: if c == '<': print('>', end='') else: print('<', end='')