#include <bits/stdc++.h>
using namespace std;
string st1,st2;
int a[1010],b[1010],c[2020];
int main()
{
cin>>st1>>st2;
a[0]=st1.size();
for(int i=1;i<=a[0];i++)
{
a[a[0]-i]=st1[i]-'0';
}
b[0]=st2.size();
for(int i=1;i<=b[0];i++)
{
b[b[0]-i]=st2[i]-'0';
}
c[0]=a[0]+b[0];
for(int i=1;i<=a[0];i++)
{
for(int j=1;j<=b[0];j++)
{
c[i+j-1]+=a[i]*b[j];
c[0]=a[0]+b[0]-1;
}
}
if(c[c[0]+1]) c[0]++;
for(int i=c[0];i>=1;i--)
{
cout<<c[i];
}
return 0;
}