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