#include <bits/stdc++.h>
using namespace std;
long long n;
int main() {
  while (cin >> n) {
    if (n % 2)
      cout << "0\n";
    else {
      cout << (1 << (n / 2)) << "\n";
    }
  }
  return 0;
}
