#include using namespace std; int getNumberOfCombinations(int c1,int c0){ int NumberOfCombinations = (c1 * (c1-1) / 2) * pow(2,c0); return NumberOfCombinations; } int main(){ //cout << getNumberOfCombinations(2,2) << endl; int K; //Combination Number cin >> K; if(K==0){ cout << 1; return 0; } for(int i = 1; i < 31; i++){ for(int c1 = 0; c1 < i+1; c1++){ int c0 = i - c1; if(K == getNumberOfCombinations(c1,c0)){ for(int i=0;i