#include<bits/stdc++.h> using namespace std; int main(){ long long i=0,s=0; while (s<=1000){ i++; s+=i; } cout<<i; return 0; }