import java.util.*; public class Main{ public static void main(String[] args){ String[] str = new Scanner(System.in).next().split(""); for(int i=str.length-1;i>-1;i--)System.out.print(str[i].equals(">")?"<":">"); System.out.println(); } }