#include<stdio.h>
int main()
{
	int N,X,L[100],D=0,a=0,b=0,i;
	scanf("%d",&N);
	scanf("%d",&X);
	for(i=0;i<N;i++)
	{
		scanf("%d",&L[i]);
		D=D+L[i];
		if (D<X || D==X)
		{
		a++;
	    }
		
	}
	b=a+1;
	printf("%d\n",b);
	return 0;
	
}