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