import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String br = sc.next(); StringBuffer sb = new StringBuffer(); for(int i=0;i'); }else if(bracket=='>'){ sb.append('<'); } } System.out.println(sb); } }