#include #include #include using namespace std; int main(){ long A, B; cin >> A >> B; cout << A * B % long(1e9 + 7) << endl; }