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