import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int l = sc.nextInt(); int n = sc.nextInt(); List w = new ArrayList(); for(int i=0; i= sum + w.get(count)){ sum = sum + w.get(count); }else{ break; } } System.out.println(count); } }