#include <bits/stdc++.h>
using namespace std;
long long maxx = 0;
const int MAX = 1e6 + 7;
map<long long, long long> m1, f1, p, g, go;
int main() {
  long long n, m, c0, d0;
  cin >> n;
  if (n % 2 != 0) {
    cout << 0;
    return 0;
  } else {
    int o = n / 2;
    cout << (int)pow(2, o);
  }
}
