let () = Scanf.scanf "%d %d\n" @@ fun a b -> Printf.printf "%d\n" ((a mod 1000000007) * (b mod 1000000007))