#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 1000;
const long long INF64 = 1e18 + 1000;
const int N = 6 * 100 * 1000 + 100;
const int MOD = 1e9 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  if (n % 2) {
    cout << 0;
    return 0;
  }
  vector<int> dp(n + 1);
  dp[2] = 2;
  for (int i = 4; i <= n; i += 2) {
    dp[i] = dp[i - 2] * 2;
  }
  cout << dp[n];
}
