#include #include "bits/stdc++.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include typedef long long ll; #define rep(i,n) for(ll i=0;i<(ll)(n);i++) using namespace std; typedef pair P; vector coins; int main() { int n = 0; cin >> n; int k = 1; int goukei=1; while (goukei <= n) { coins.push_back(goukei); k++; goukei = k * (k + 1) / 2; } /* for(int i=0; i= 0; i--) { int sum = n; int ans = 0; /* cout<= 0; j--) { /* cout<