#!/usr/bin/env python def main(): ss = list(input().strip()) ss.reverse() ans = "" for s in ss: if s == "<": ans += ">" else: ans += "<" print("".join(ans)) if __name__ == '__main__': main()