#include <bits/stdc++.h>
using namespace std;
inline void read(int &a) {
  a = 0;
  int d = 1;
  char ch;
  while (ch = getchar(), ch > '9' || ch < '0')
    if (ch == '-') d = -1;
  a = ch ^ 48;
  while (ch = getchar(), ch >= '0' && ch <= '9')
    a = (a << 3) + (a << 1) + (ch ^ 48);
  a *= d;
}
inline void write(int x) {
  if (x < 0) putchar(45), x = -x;
  if (x > 9) write(x / 10);
  putchar(x % 10 + '0');
}
inline int quickmod(int x) {
  int res = 1;
  int base = 2;
  while (x) {
    if (x & 1) res = res * base;
    base *= base;
    x >>= 1;
  }
  return res;
}
int main() {
  int n;
  read(n);
  if (n & 1) return puts("0"), 0;
  n /= 2;
  write(quickmod(n));
  putchar('\n');
  return 0;
}
