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