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