#include<stdio.h>
#include<string.h>
int main()
{
char n1[1000] = "", n2[1000] = "";
int n3[2000] = {0};
int i, j, k = 0, l = 0;
int m, n, p = 0;
scanf("%s%s", &n1, &n2);
getchar();
m = strlen(n1);
n = strlen(n2);
for(i = m - 1; i >= 0; i--){
k = l;
for(j = n - 1; j >= 0; j--){
n3[k] += (n1[i] - '0') * (n2[j] - '0');
k++;
}
for(p = 0; p < k - 1; p++){
n3[p + 1] += n3[p] / 10;
n3[p] = n3[p] % 10;
}
l++;
}
for(i = k - 1; i >= 0; i--){
printf("%d", n3[i]);
}
return 0;
}
#include<string.h>
int main()
{
char n1[1000] = "", n2[1000] = "";
int n3[2000] = {0};
int i, j, k = 0, l = 0;
int m, n, p = 0;
scanf("%s%s", &n1, &n2);
getchar();
m = strlen(n1);
n = strlen(n2);
for(i = m - 1; i >= 0; i--){
k = l;
for(j = n - 1; j >= 0; j--){
n3[k] += (n1[i] - '0') * (n2[j] - '0');
k++;
}
for(p = 0; p < k - 1; p++){
n3[p + 1] += n3[p] / 10;
n3[p] = n3[p] % 10;
}
l++;
}
for(i = k - 1; i >= 0; i--){
printf("%d", n3[i]);
}
return 0;
}