import java.util.*; class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { StringBuilder sb = new StringBuilder(sc.next()); String s = sb.reverse().toString(); s = s.replace("<","0"); s = s.replace(">","<"); System.out.println(s.replace("0",">")); } }