def main(): line = input() chars = list(line[::-1]) for c in chars: if c == '<': print('>', end='') else: print('<', end='') print('') if __name__ == '__main__': main()