#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int64_t A, B; cin >> A >> B; cout << A * B % 1000000007 << '\n'; return 0; }