package main import "fmt" const mod = 1000000007 func main() { var a, b int fmt.Scan(&a, &b) fmt.Println(((a % mod) * (b % mod)) % mod) }