#include #define N 1000000007 using namespace std; int main(){ unsigned long long int a, b; cin >> a >> b; cout << a * b % N << endl; }