using System; using System.Diagnostics; namespace yukicoder { class Program { static void Main(string[] args) { string[] str = Console.ReadLine().Split(' '); //比較用配列 string[] a = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" }; //入力した文字列の分割 for(int i=0;i<9;i++) { int B = int.Parse(str[i]); } //文字列の位置を検索 for(int i=0;i<9;i++) { int num = str[i].IndexOf(a[i], 0); if(num==-1) { i++; Console.WriteLine(i.ToString()); break; } } } } }