#include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); // freopen("J2.in","r",stdin); // freopen("J2.out","w",stdout); int a,b; cin>>a>>b; int a1 = a/10; int a2 = a%10; int b1 = b/10; int b2 = b%10; cout<<(a1+a2)*(b1+b2)<<endl; return 0; }