//No.72 そろばん Med import std.stdio; void main() { ulong n; readf("%d\n", &n); ulong tmp = n/2; writeln(((tmp+1)*(tmp+(n&1?1:0))+tmp)%1000007); }