#include<iostream> using namespace std; int main(){ int b=0; for(int a = 1; ; a++){ b+=a; if(b>1000){ cout<<a; return 0; } } return 0; }