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