#include<iostream>
using namespace std;
string s1, s2;
int a[2100], b[2100], c[2100];
void toi_reverse(int t[], string s) {
for (int i = 0; i < s.length(); i++)
{
t[s.length() - i] = s[i] - '0';
}
}
int main()
{
cin >> s1 >> s2;
toi_reverse(a, s1);
toi_reverse(b, s2);
int lena = s1.length(), lenb = s2.length();
int lenc = lena + lenb;
for (int i = 1; i <=lena; i++)
{
for (int j = 1; j <= lenb; j++)
{
c[i + j - 1] += a[i] * b[j];
if (c[i + j - 1] >= 10) {
c[i + j] += c[i + j - 1] / 10;
c[i + j - 1] %= 10;
}
}
}
while (c[lenc] == 0 && lenc > 1) lenc--;
for (int i = lenc; i >= 1; i--) cout << c[i];
return 0;
}