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