#!/usr/bin/env python #coding:UTF-8 #入力値の受け取り S = raw_input() #文字数計算 SL = len(S) S2 = "" #反転処理 for i in range(SL-1,-1,-1): if S[i] == "<": S2 += ">" else: S2 += "<" print S2