#include using namespace std; using Int = long long; //INSERT ABOVE HERE signed main(){ Int a,b; cin>>a>>b; const Int MOD = 1e9+7; cout<<(a*b)%MOD<