#include<iostream> using namespace std; int main(){ int i,n; i=1; n=0; while(n<=1000){ n=n+i; i++; } cout<<i-1; return 0; }