#include using namespace std; typedef long long ll; ll calc(ll d) { return (ll)((-1 + sqrt(1 + 4*d)) / 2.0); } ll solve(ll d){ for(ll t=d+10;;t--){ if(t*t+t<=d)return t; } } int main(){ int cnt=0; for(ll i=1000000000-10000000;;i++){ if(calc(i*i+i)