(function (s) for i=#s,1,-1 do io.write(s:sub(i,i)=="<" and ">" or "<") end io.write("\n") end)(io.stdin:read("*l"))