import java.io.*; import java.util.*; import java.math.*; class Main { public static void out (Object o) { System.out.println(o); } public static void main (String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); long n = Long.parseLong(br.readLine()); if (n % 2 == 0) out((long)Math.pow(n / 2 + 1 , 2) - 1); else out(((n + 1) / 2 + 1) * ((n - 1) / 2 + 1) - 1); } }