#include <bits/stdc++.h> using namespace std; typedef long long ll; ll calc(ll d) { return (ll)((-1 + sqrt(1 + 4*d)) / 2.0); } int main() { vector<long long> ANS; for (long long c = 2000000000-1; c >= 0; --c) { long long lc = (c * c - 1) / 4; for (long long x = lc - 10; x <= lc + 10; ++x) { //cout<<x<<"\n"; long long ans = static_cast<long long>(calc(x)); if (ans * ans + ans <= x && (ans + 1) * (ans + 1) + ans + 1 <= x) { ANS.push_back(x); } else if (ans * ans + ans > x) { ANS.push_back(x); } } if (ANS.size() == 100000) { break; } } for (long long ans : ANS) { cout << ans << endl; } return 0; }