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