#include <stdio.h> int main(void) { int n, i; long temp, sn; for (;;) { sn = 0; temp = 1; scanf("%d", &n); for (i = 1; i <= n; i++) { temp *= i; if (i % 2 == 1) sn = sn + temp; } printf("%ld\n", sn); } }