#include <iostream>
using namespace std;
#define N 10000
int A[N],B[N];
int main(){
int a,b,cnt1=0,cnt2=0,sum=0;
scanf("%d%d",&a,&b);
while(a>0){
A[cnt1++]=a%10;
a/=10;
}
while(b>0){
B[cnt2++]=b%10;
b/=10;
}
for(int i=0;i<cnt1;i++){
for(int j=0;j<cnt2;j++){
sum+=A[i]*B[j];
}
}
printf("%d",sum);
return 0;
}