# include<iostream>
# include<string>
# include<cstring>
using namespace std;
const int N=1e5+5;
struct ll{
int len,a[N];
ll(int x=0){
if(x){
string s;
cin>>s;
len=s.size();
for(int i=1;i<=len;++i)
a[i]=s[len-i]-48;
}
else{
len=0;
memset(a,0,sizeof(a));
}
}
int &operator[](int i){
return a[i];
}
void f(int l){
len=l;
for(int i=1;i<=len;++i)
a[i+1]+=a[i]/10,a[i]%=10;
while(!a[len]) len--;
if(len<1) len=1;
}
void print(){
for(int i=len;i>=1;--i)
cout<<a[i];
}
}a(1),b(1);
ll operator+(ll a,ll b){
ll c;
int p=a.len,q=b.len,r=max(p,q);
for(int i=1;i<=r;++i)
c[i]=a[i]+b[i];
c.f(r+1);
return c;
}
ll operator*(ll a,ll b){
ll c;
int p=a.len,q=b.len;
for(int i=1;i<=p;++i)
for(int j=1;j<=q;++j)
c[i+j-1]+=a[i]*b[j];
c.f(p+q+1);
return c;
}
int main(){
(a*b).print();
return 0;
}