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