s = input() v=s[::-1] a=v.translate(str.maketrans({'<':'>','>':'<'})) print(a)