import strutils, sequtils let AB = stdin.readLine.split.map parseInt echo AB[0] * AB[1] mod 1_000_000_007