Problem: A robot is standing at the origin of the infinite two-dimensional plane. Each second the robot moves exactly 1 meter in one of the four cardinal directions: north, south, west, and east. For the first step the robot can choose any of the four directions, but then at the end of every second it has to turn 90 degrees left or right with respect to the direction it just moved in. For example, if the robot has just moved north or south, the next step it takes has to be either west or east, and vice versa.

The robot makes exactly n steps from its starting position according to the rules above. How many different points can the robot arrive to at the end? The final orientation of the robot can be ignored.

Input

The only line contains a single integer n (1 ≤ n ≤ 1000) — the number of steps the robot makes.

Output

Print a single integer — the number of different possible locations after exactly n steps.

Examples

Input


1


Output


4


Input


2


Output


4


Input


3


Output


12

Note

In the first sample case, the robot will end up 1 meter north, south, west, or east depending on its initial direction.

In the second sample case, the robot will always end up √{2} meters north-west, north-east, south-west, or south-east.

Solution (in JAVA):

Solution:
import java.io.PrintWriter;
import java.util.*;

public class TP {

  public static PrintWriter out = new PrintWriter(System.out);
  public static Scanner in = new Scanner(System.in);

  public static void main(String[] args) {
    int t = 1;
     //t = ni();
    while (t--   > 0) solve2();
    out.flush();
  }

  private static void solve2() {
    int n = ni();
    long ans = 0;
    int x = 1;
    if (n % 2 == 0) {
      if ((n / 2) % 2 == 0) {
        x = n / 4;
        ans = 4 * x * x + 4 * x + 1;
      } else {
        x = ((n / 2) + 1) / 2;
        ans = 4 * x * x;
      }

    } else {
      long t = 8;
      ans = 4;
      x = 1;
      while (x != n) {
        ans += t;
        t += 4;
        x += 2;
      }
    }
    System.out.println(ans);
  }

  static long ans = 0;
  static long n = 0;
  static HashSet<String> set;

  private static void solve() {
    n = ni();
    set = new HashSet<>();
    int x = 0, y = 0;
    ans = 0;
    find(0, 0, 0, -1);
    for (String s : set) {
      System.out.println("(" + s + ")");
    }
    System.out.println(set.size());
  }

  private static void find(int x, int y, int steps, int dir) {
    String key = "" + x + "," + y;
    // if (set.contains(key) && steps < n / 2) return;
    if (steps == n) {
      set.add("" + x + "," + y);
      return;
    }
    if (dir != 1 && dir != 3) {
      find(x, y + 1, steps + 1, 1);
      find(x, y - 1, steps + 1, 3);
    }
    if (dir != 2 && dir != 4) {
      find(x + 1, y, steps + 1, 2);
      find(x - 1, y, steps + 1, 4);
    }
  }

  private static int ni() {
    return in.nextInt();
  }

  private static int[] na(int n) {
    int[] a = new int[n];
    for (int i = 0; i < n; i++) a[i] = ni();
    return a;
  }

  private static long[] nal(int n) {
    long[] a = new long[n];
    for (int i = 0; i < n; i++) a[i] = nl();
    return a;
  }

  private static long nl() {
    return in.nextLong();
  }

  private float nf() {
    return in.nextFloat();
  }

  private static double nd() {
    return in.nextDouble();
  }

  public static int[] facs(int n, int[] primes) {
    int[] ret = new int[9];
    int rp = 0;
    for (int p : primes) {
      if (p * p > n) break;
      int i;
      i = 0;
      while (n % p == 0) {
        n /= p;
        i++;
      }
      if (i > 0) ret[rp++] = p;
    }
    if (n != 1) ret[rp++] = n;
    return Arrays.copyOf(ret, rp);
  }

  public static int[] sieveEratosthenes(int n) {
    if (n <= 32) {
      int[] primes = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31};
      for (int i = 0; i < primes.length; i++) {
        if (n < primes[i]) {
          return Arrays.copyOf(primes, i);
        }
      }
      return primes;
    }

    int u = n + 32;
    double lu = Math.log(u);
    int[] ret = new int[(int) (u / lu + u / lu / lu * 1.5)];
    ret[0] = 2;
    int pos = 1;

    int[] isnp = new int[(n + 1) / 32 / 2 + 1];
    int sup = (n + 1) / 32 / 2 + 1;

    int[] tprimes = {3, 5, 7, 11, 13, 17, 19, 23, 29, 31};
    for (int tp : tprimes) {
      ret[pos++] = tp;
      int[] ptn = new int[tp];
      for (int i = (tp - 3) / 2; i < tp << 5; i += tp) ptn[i >> 5] |= 1 << (i & 31);
      for (int j = 0; j < sup; j += tp) {
        for (int i = 0; i < tp && i + j < sup; i++) {
          isnp[j + i] |= ptn[i];
        }
      }
    }

    // 3,5,7
    // 2x+3=n
    int[] magic = {
      0, 1, 23, 2, 29, 24, 19, 3, 30, 27, 25, 11, 20, 8, 4, 13, 31, 22, 28, 18, 26, 10, 7, 12, 21,
      17, 9, 6, 16, 5, 15, 14
    };
    int h = n / 2;
    for (int i = 0; i < sup; i++) {
      for (int j = ~isnp[i]; j != 0; j &= j - 1) {
        int pp = i << 5 | magic[(j & -j) * 0x076be629 >>> 27];
        int p = 2 * pp + 3;
        if (p > n) break;
        ret[pos++] = p;
        if ((long) p * p > n) continue;
        for (int q = (p * p - 3) / 2; q <= h; q += p) isnp[q >> 5] |= 1 << q;
      }
    }

    return Arrays.copyOf(ret, pos);
  }
}