usingnamespacestd; intn; boolinput(); voidsolve(); intmain() { freopen("d:\\OJ\\uva_in.txt", "r", stdin); while (input()) { solve(); } return0; } boolinput() { returnscanf("%d", &n) ==1; } voidsolve() { n=n/2+1; printf("%lld\n", (longlong)n* (n+1) /2); }