import std.stdio; import std.string; import std.algorithm; import std.conv; //--------------------- void main(){ auto MOD = 1_000_007; auto N = readln.chomp.to!long; auto upper = (N / 2) % MOD; auto lower = (N - upper) % MOD; ((lower) + ((lower) + 1) * (upper)).writeln; }