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