#include<bits/stdc++.h> using namespace std; int a,b,c,sum; int main(){ cin>>a>>b; c=a*b; while(c){ sum+=c%10; c/=10; } cout<<sum<<endl; }