# -*- coding: utf-8 -*- S = input() print(S[::-1].translate(str.maketrans('<>', '><')))