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