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