#include <bits/stdc++.h>
using namespace std;
long long d, x, y;
void extendedEuclid(long long A, long long B) {
  if (B == 0) {
    d = A;
    x = 1;
    y = 0;
  } else {
    extendedEuclid(B, A % B);
    int temp = x;
    x = y;
    y = temp - (A / B) * y;
  }
}
long long power(long long x, long long y, long long p) {
  long long res = 1;
  x = x % p;
  while (y > 0) {
    if (y & 1) res = (res * x) % p;
    y = y >> 1;
    x = (x * x) % p;
  }
  return res;
}
map<long long, long long> par, val;
void ini() {
  for (long long i = 0; i < 500010; i++) {
    par[i] = i;
  }
}
long long root(long long x) {
  while (par[x] != x) {
    par[x] = par[par[x]];
    x = par[x];
  }
  return x;
}
void uni(long long x, long long y) {
  x = root(x);
  y = root(y);
  if (val[x] <= val[y])
    par[y] = par[x];
  else
    par[x] = par[y];
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  long long n, i, j, k, m;
  cin >> n;
  if (n % 2) {
    cout << 0;
    return 0;
  }
  n /= 2;
  long long x = pow(2, n);
  cout << x;
}
