a="" for i in input()[::-1]:a+='<'if i=='>'else'>' print(a)