#include <bits/stdc++.h> using namespace std; int a,b,c,d,ans; int main() { // freopen("J2.in","r",stdin); // freopen("J2.out","w",stdout); scanf("%d%d",&a,&c); b=a%10,a=a/10,d=c%10,c=c/10; ans=a*c+a*d+b*c+b*d; printf("%d\n",ans); return 0; }