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