using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; class Program { static string InputPattern = "InputX"; static List GetInputList() { var WillReturn = new List(); if (InputPattern == "Input1") { WillReturn.Add("9"); WillReturn.Add("yukicoder"); //UECoder } else if (InputPattern == "Input2") { WillReturn.Add("14"); WillReturn.Add("summervacation"); //UECation } else if (InputPattern == "Input3") { WillReturn.Add("6"); WillReturn.Add("campus"); //UECampus } else { string wkStr; while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr); } return WillReturn; } static long[] GetSplitArr(string pStr) { return (pStr == "" ? new string[0] : pStr.Split(' ')).Select(pX => long.Parse(pX)).ToArray(); } static void Main() { List InputList = GetInputList(); //long[] wkArr = GetSplitArr(InputList[0]); string S = InputList[1]; string Answer = Regex.Replace(S, "^.*c", "UEC"); Console.WriteLine(Answer); //long[] wkArr = { }; //Action SplitAct = (pStr) => wkArr = GetSplitArr(pStr); } }