/*高精度乘法*/
#include <stdio.h>
#include <string.h>
int main() {
char s1[1000], s2[1000];
int a[1000] = {0}, b[1000] = {0}, c[1000] = {0};
scanf("%s %s", s1, s2);
int i, j, k, p, l1 = strlen(s1), l2 = strlen(s2);
for (i = 0; i < l1; i++) a[l1-i-1] = s1[i] - '0';
for (j = 0; j < l2; j++) b[l2-j-1] = s2[j] - '0';
for (i = 0, k = l1-1; i < l2; i++) {
for (j = 0, p = i ; j < l1; j++, p++) {
c[p] += a[j]*b[i];
}
for (j = 0; j <= k; j++) {
if (c[j] > 9) {
c[j+1] += c[j]/10;
c[j] %= 10;
}
}
while (c[k+1] != 0) k++;
}
for (i = k; i >= 0; i--) printf("%d", c[i]);
printf("\n");
return 0;
}