import math, sequtils, strutils const n = 1000000007 echo stdin.readLine.split.map(parseInt).prod mod n