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