import sequtils,strutils var A,B : int64 (A, B) = stdin.readline.split.map(parseBiggestInt) echo A * B mod 1000_000_007