import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No400{ public static void main(String[] args) { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); mirror(str); } catch(IOException e){ e.getStackTrace(); } catch(NumberFormatException e){ e.getStackTrace(); } } public static void mirror(String str){ char[] chn = str.toCharArray(); for(int i=0; i < str.length()/2; i++){ char temp = chn[i]; chn[i] = chn[chn.length-1-i]; chn[chn.length-1-i] = temp; } hanten(chn); for(char ans:chn){ System.out.print(ans); } System.out.println(); } public static void hanten(char[] chn){ for(int i=0; i < chn.length; i++){ if(chn[i] == '<') chn[i] = '>'; else chn[i] ='<'; } } }