#include<iostream>
#include<string>
using namespace std;
string s1, s2;
int arr1[1000], arr2[1000], arr3[10000];
void strtoint(string s,int arr[]) {
int i;
for (i = 0; i < s.size(); i++) {
arr[s.size() - i] = s[i] - '0';
}
}
int main() {
cin >> s1 >> s2;
strtoint(s1, arr1);
strtoint(s2, arr2);
int len1 = s1.size(), len2 = s2.size();
int len3 = len1 + len2;
for (int i = 1; i <= len1; i++) {
for (int j = 1; j <= len2; j++) {
arr3[i + j - 1] += arr1[i] * arr2[j];
arr3[i + j] += arr3[i + j - 1] / 10;
arr3[i + j - 1] %= 10;
}
}
while (arr3[len3] == 0 && len3 > 1) len3--;
for (int i = len3; i >= 1; i--) {
cout << arr3[i];
}
}