using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.IO; class TEST{ static void Main(){ Sol mySol =new Sol(); mySol.Solve(); } } class Sol{ public void Solve(){ // 正解をゲットする bool gabagaba=false; if(gabagaba){ HttpWebRequest HttpWReq; Encoding enc = Encoding.UTF8; String url="http://www.geocities.jp/unko_der/sample_01.txt"; HttpWReq=(HttpWebRequest)WebRequest.Create(url); HttpWReq.Method="GET"; HttpWebResponse HttpWResp = (HttpWebResponse)HttpWReq.GetResponse(); Stream resStream = HttpWResp.GetResponseStream(); StreamReader sr = new StreamReader(resStream, enc); String html = sr.ReadToEnd(); sr.Close(); resStream.Close(); HttpWResp.Close(); var ca=html.ToCharArray(); ca[0]='3'; var PI0=new String(ca); for(int i=0;i D=new Dictionary(); for(int i=0;i(){ {'3',20011}, {'.',1}, {'1',20063}, {'4',19874}, {'5',20199}, {'9',19841}, {'2',19892}, {'6',19898}, {'8',19956}, {'7',20163}, {'0',20104} }; char less='x'; char more='x'; foreach(var k in PI.Keys){ if(D[k]>PI[k])more=k; if(D[k]int.Parse(e));} static long[] rla(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>long.Parse(e));} static double[] rda(){return Array.ConvertAll(Console.ReadLine().Split(' '),e=>double.Parse(e));} }