#include<bits/stdc++.h> using namespace std; int main(){ int a,b,suma,sumb; cin>>a>>b; suma=a%10+a/10,sumb=b%10+b/10; cout<<suma*sumb<<'\n'; return 0; }