d = raw_input().strip() d = d.replace("<", "T").replace(">", "<").replace("T", ">") print d[::-1]