s = input() s = s.replace("<", "@") s = s.replace(">", "<") s = s.replace("@", ">") print(s[::-1])