#include<bits/stdc++.h> using namespace std; int main(){ int s=0; int n=1; while(s<=1000){ s += n; n++; } cout<<n-1<<endl; return 0; }