#include int main(void){ long A,B; scanf("%ld %ld",&A,&B); A = A*B; // printf("%ld\n",A); // check ok printf("%ld\n",A%1000000007); return 0; }