#coding: utf-8 #yuki400 s=list(raw_input()) for i in xrange(len(s)): if s[i]=='>': s[i]='<' else: s[i]='>' s.reverse() t=''.join(s) print t