#include using namespace std; int main() { unsigned long long int x, y; cin >> x >> y; cout << (x * y) % 1000000007 << endl; return 0; }