using System; using System.Collections.Generic; //No.400 鏡 class Program { static string InputPattern = "InputX"; static List GetInputList() { var WillReturn = new List(); if (InputPattern == "Input1") { WillReturn.Add("<<<"); //>>> } else if (InputPattern == "Input2") { WillReturn.Add("<>>"); //<<> } else if (InputPattern == "Input3") { WillReturn.Add(">>><<<"); //>>><<< } else if (InputPattern == "Input4") { WillReturn.Add("><<><<<><><"); //><><>>><>>< } else { string wkStr; while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr); } return WillReturn; } static void Main() { List InputList = GetInputList(); string S = InputList[0]; var sb = new System.Text.StringBuilder(); for (int I = S.Length - 1; 0 <= I; I--) { if (S[I] == '<') sb.Append('>'); if (S[I] == '>') sb.Append('<'); } Console.WriteLine(sb.ToString()); } }