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