using System; public class Program { public void Solve() { Char[] c = Console.ReadLine().ToCharArray(); string ans = ""; for (int i = c.Length - 1; i >= 0; i--) { if (c[i].Equals('>')) { ans += "<"; } else { ans += ">"; } } Console.WriteLine(ans); } public static void Main(string[] args) { Program program = new Program(); program.Solve(); } }