#include<bits/stdc++.h>
using namespace std;
string s1,s2;
int b[300],a[300],c[600],p;
int main(){
cin>>s1>>s2;
for(int i=0;i<=s1.size()-1;i++)a[i]=s1[s1.size()-1-i]-'0';
for(int i=0;i<=s2.size()-1;i++)b[i]=s2[s2.size()-1-i]-'0';
for(int i=0;i<s1.size();i++){
    for(int j=0;j<s2.size();j++){
        c[i+j]=c[i+j]+a[i]*b[j];
        if(c[i+j]>=10){
            c[i+j+1]=c[i+j+1]+c[i+j]/10;
            c[i+j]=c[i+j]%10;
        }
    }
}
for(int i=s1.size()+s2.size()-1;i>=0;i--){
    if(c[i]!=0){
        p=i;
        break;
    }
}
for(int i=p;i>=0;i--){
    cout<<c[i];
}
    return 0;
}
/**************************************************************
	Problem: 1287
	User: lijinkai
	Language: C++
	Result: Accepted
	Time:16 ms
	Memory:2080 kb
****************************************************************/