#include <iostream> using namespace std; int main() { int s = 0; int n = 0; while (true) { n++; s += n; if (s > 1000) { break; } } cout << n << endl; return 0; }