#include using namespace std; int main() { int64_t a, b, c; cin >> a >> b; c = 1000000007; cout << a * b % c << endl; }