print((function (n) if n%2==0 then n=n/2 return (n+2)*n end n=math.floor(n/2) return (n+3)*n+1 end)(io.stdin:read("*n")))