print((function (n) return tostring((n-1LL)^2/4LL):sub(1,-3) end)(io.stdin:read("*n")))