using System; using System.Collections.Generic; using System.Linq; public class Yuki666 { public static void Main() { var a = Console.ReadLine().Split(' ').Select(x => long.Parse(x)).ToList(); Console.WriteLine((a[0] * a[1]) % 1000000007); } }