import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; public class Main{ public static void main(String[] args) throws IOException { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int L = Integer.parseInt(br.readLine()); int N = Integer.parseInt(br.readLine()); String s[] = br.readLine().split(" "); ArrayList w = new ArrayList(); for(int i=0;i L){break;} } System.out.println(result); } }