/
/高精度乘法
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
int num1[505];
int num2[505];
int num3[505];
int main()
{
memset(num1,0,sizeof(num1));
memset(num2,0,sizeof(num1));
memset(num3,0,sizeof(num1));
string s1,s2;
cin>>s1;
cin>>s2;
int flag=0;
if(s1[0]=='-'||s2[0]=='-') flag=1;
if(s1[0]=='-'&&s2[0]=='-') flag=0;
for(int i=0;i<s1.size();i++)
{
if(s1[s1.size()-i-1]=='-') break;
num1[i]=s1[s1.size()-i-1]-'0';
}
for(int i=0;i<s2.size();i++)
{ if(s2[s2.size()-i-1]=='-') break;
num2[i]=s2[s2.size()-i-1]-'0';
}
for(int i=0;i<s2.size();i++)
for(int j=0;j<s1.size();j++)
{
num3[i+j]+=num2[i]*num1[j];
if(num3[i+j]>=10)
{
num3[i+j+1]+=num3[i+j]/10;
num3[i+j]%=10;
}
}
int len=s1.size()+s2.size();
while(num3[len]==0&&len>0) len--;
if(flag==1) printf("-");
for(int i=len;i>=0;i--)
printf("%d",num3[i]);
return 0;
}