package yukicoder; import java.util.Scanner; public class No554 { private int n; private int[] a; private int sumtmp; public static void main(String[] args) { No554 main = new No554(); main.run(); } private void run() { Scanner sc = new Scanner(System.in); n = sc.nextInt(); a = new int[n + 1]; a[1] = 1; for(int i = 2; i < a.length; i++) { if(i % 2 == 1) { a[i] = odd(i); } else { a[i] = even(i); } } System.out.println(a[n]); } private int odd(int n) { sumtmp = 0; for(int i = 2; i < n; i += 2) { sumtmp += a[i]; } return n * sumtmp; } private int even(int n) { sumtmp = 0; for(int i = 1; i < n; i += 2) { sumtmp += a[i]; } return n * sumtmp; } }