import java.util.*; public class pre { public static void main(String[] args) { Scanner s = new Scanner(System.in); String str = s.next(); for(int i=str.length()-1;i>=0;i--){ if(str.charAt(i) == '<') System.out.print(">"); else if(str.charAt(i) == '>') System.out.print("<"); } System.out.println(); } }