import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000400_Main { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException { String s = br.readLine(); int sLen = s.length(); char[] cArr = new char[sLen]; for(int i = sLen - 1; 0 <= i; i--) { if(s.charAt(i) == '<') { cArr[sLen - 1 - i] = '>'; } else { cArr[sLen - 1 - i] = '<'; } } System.out.println(new String(cArr)); } }