#include<iostream> using namespace std; int main(){ int n=0; int t=0; while(n<=1000){ t++; n+=t; } cout<<t; return 0; }