#include #define NUM 1000000007 int main(void) { long long int A, B; long long int r, ra, rb; scanf("%lld %lld", &A, &B); ra = A % NUM; rb = B % NUM; r = (ra * rb ) % NUM; printf("%d\n", r); return 0; }