const int blen = 7;
const unsigned base = (int)1e7;
const int mlen = 20010;
#include "..\\base.cpp"
void Mul( num &c, num &a, num &b )
{
int la = Len(a), lb = Len(b);
memset(c, 0, sizeof(c));
assert(la + lb < mlen);
forn(i, la)
forn(j, lb)
c[i + j] += a[i] * b[j];
forn(i, la + lb)
if (c[i] >= base)
c[i + 1] += c[i] / base, c[i] %= base;
}
num c, a, b;
int main()
{
Read(a);
Read(b);
Mul(c, a, b);
Out(c);
return 0;
}