// author : www.codechef.com/users/waqar_ahmad224
#include<bits/stdc++.h>
using namespace std;
void init(int ar[])
{
for(int i=0;i<1000;i++)
ar[i] = 0;
}
int main()
{
int carry,size,ar[1000],tmp;
string st1,st2;
char c;
while(1)
{
cin>>st1;
if(feof(stdin)) break;
cin>>st2;
if((st1.size()==1)&&(st1[0]=='0'))
{
cout<<0<<endl;
continue;
}
if((st2.size()==1)&&(st2[0]=='0'))
{
cout<<0<<endl;
continue;
}
for(int i=0;i<st1.size()/2;i++)
{
c = st1[i];
st1[i] = st1[st1.size()-i-1];
st1[st1.size()-i-1] = c;
}
for(int i=0;i<st2.size()/2;i++)
{
c = st2[i];
st2[i] = st2[st2.size()-i-1];
st2[st2.size()-i-1] = c;
}
size=0;
init(ar);
for(int i=0;i<st1.size();i++)
{
carry = 0;
for(int j=0;j<st2.size();j++)
{
tmp = ((st2[j]-'0')*(st1[i]-'0')) + carry+ar[i+j];
ar[i+j] = tmp%10;
carry = tmp/10;
if((i+j)==size)
size++;
}
if(carry>0)
ar[size++] = carry;
}
for(int i=size-1;i>=0;i--)
cout<<ar[i];
cout<<endl;
}
return 0;
}
Ly8gYXV0aG9yIDogd3d3LmNvZGVjaGVmLmNvbS91c2Vycy93YXFhcl9haG1hZDIyNAoKI2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCnZvaWQgaW5pdChpbnQgYXJbXSkKewoJZm9yKGludCBpPTA7aTwxMDAwO2krKykKCWFyW2ldID0gMDsKfQppbnQgbWFpbigpCnsKCWludCBjYXJyeSxzaXplLGFyWzEwMDBdLHRtcDsKCXN0cmluZyBzdDEsc3QyOwoJY2hhciBjOwoJCgl3aGlsZSgxKQoJewoJCWNpbj4+c3QxOwoJCWlmKGZlb2Yoc3RkaW4pKSBicmVhazsKCQljaW4+PnN0MjsKCQkKCQlpZigoc3QxLnNpemUoKT09MSkmJihzdDFbMF09PScwJykpCgkJewoJCQljb3V0PDwwPDxlbmRsO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