#include
#include
int main()
{
int len, data, ret=-1,input;
int *arr;
scanf("%d %d", &len, &data);
arr = (int*)malloc(len*sizeof(int));
for (int i=0; i
scanf("%d",&input);
arr[i] = input;
}
for (int j=0; j
{
ret = j;
break;
}
}
printf("\n%d", ret);
}