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