#include<iostream> using namespace std; int main() { int s=1,n=0; while(s<=1000){ s+=n; n++; } cout<<n-1; return 0; }