#include using namespace std; typedef long long LL; int main(int argc, char* argv[]) { LL A,B; cin>>A>>B; cout<<(A*B)%1000000007<