#include <stdio.h>

int main(void) {
	int a=0,b=0;
		while(b<=1000)
{       
		a=a+1;
		b=b+a;
}

printf("%d",a);









	return 0;
}
