import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int cnt = 0; int i1 = 0 ,i2 = 0, i3 = 0; long L1 = 0, L2 = 0, L3 = 0; char ch; String str = ""; String s1 = sc.next(); char[] c1 = s1.toCharArray(); for(int i=c1.length-1;i>=0;i--){ if(c1[i]=='<') str += ">"; if(c1[i]=='>') str += "<"; } System.out.print(str); System.out.println(); } }