func main()
	const mod: int :: 1000007
	var n: int :: cui@inputInt()
	var a: int :: n / 2
	var b: int :: n - a
	var ans: int :: ((a + 1) % mod * (b + 1) % mod + mod - 1) % mod
	do cui@print("\{ans}\n")
end func