Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
311 B
28
Indexable
Never
#include <bits/stdc++.h>

using namespace std;


int main()
{
    // Write your code here
    int Y;
    cin>>Y;
    
    long long int nb_nodes = pow(2, Y-1);
    long long int node_val = 1;
    
    for(int i=3; i<=Y; i++){
        node_val *= 2;
    }
    
    cout<<node_val*nb_nodes<<endl;

    return 0;
}