import java.lang.*; import java.io.*; class Yuki400{ public static void main(String[] args) throws IOException { DataInputStream d=new DataInputStream(System.in); String s=d.readLine(); for(int i=s.length()-1; i>=0; --i){ char a; a=s.charAt(i); if(a=='<'){ System.out.print('>'); } else if(a=='>'){ System.out.print('<'); } } System.out.println(); } }