import java.util.*; public class Exercise149{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); char[] array = s.toCharArray(); char[] mirror = new char[array.length]; for(int i = 0; i < array.length; i++){ int mirrorIndex = array.length - 1 - i; if(array[i] == '<'){ mirror[mirrorIndex] = '>'; }else{ mirror[mirrorIndex] = '<'; } } System.out.println(String.valueOf(mirror)); } }