import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines S = read().rstrip().decode() T = ''.join('<' if x == '>' else '>' for x in S[::-1]) print(T)