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