//No.72 そろばん Med //v2 import std.stdio; import std.bigint; void main() { char[] c; readln(c); BigInt n = c[0..$-1]; auto tmp = n/2; writeln(((tmp+1)*(tmp+(n&1?1:0))+tmp)%1000007); }