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