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