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