import string print(input().translate(string.maketrans('><', '<>'))[::-1])