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