import sequtils,strutils proc reverse(s : var string) = for i in 0..(s.high div 2): (s[i], s[s.high - i]) = (s[s.high - i], s[i]) var s = stdin.readline for i,c in s: if c == '<': s[i] = '>' else: s[i] = '<' s.reverse echo s