import java.util.Scanner;
public class Main{
public static void main (String[] args) {
Scanner obj = new Scanner(System.in);
int X,Z,counter = 1,c = 0,i;
X = obj.nextInt();
Z = obj.nextInt();
while(Z <= X){
Z = obj.nextInt();
for (i = X; i <= Z; i++){
c += i;
if(c > Z){
break;
}else{
counter++;
}
}
}
System.out.println(counter);
}
}