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