#include using namespace std; int main(){ long a,b; a%=1000000007; b%=1000000007; cout << (a*b)%1000000007 <