1
 2
 3
 4
 5
 6
 7
 8
 9
10
#include <iostream>
using namespace std;
int main()
{
int n, m, a;
cin >> n >> m;
a=(n*m)%1000000007;
cout << (a+m)%1000000007;
return 0;
}