import java.util.Scanner; public class Main{ public static void main(String[] args) { solver(); } static void solver() { Scanner sc = new Scanner(System.in); String s = sc.next(); StringBuilder sb = new StringBuilder(); for (int i = s.length() - 1; i >= 0; i--) { if (s.charAt(i) == '<') { sb.append(">"); } else if (s.charAt(i) == '>') { sb.append("<"); }else{ throw new AssertionError(); } } System.out.println(sb.toString()); sc.close(); } }