help
package com.codegym.task.task07.task0718;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
/*
Checking the order
*/
public class Solution {
public static void main(String[] args) throws IOException {
//write your code here
ArrayList<String> str = new ArrayList<>();
BufferedReader reader = new BufferedReader(new InputStreamReader (System.in));
for(int i = 0 ; i < 10 ; i++){
str.add(reader.readLine());
}
//System.out.println(str);
Integer ord = str.get ( 0 ).length ();
Integer index = 0;
for(int i = 0 ; i < str.size (); i++){
if(ord >= str.get ( i ).length () ){
index = i++ ;
break;
}
}
System.out.println ( index );
}
}