#include using namespace std; #define int long long signed main(){ int A, B, a, b, ans, aa, bb; cin>>A>>B; a=A,b=B; if(A<0)a*=-1;a = to_string(a).length()-1; aa = pow(10,a); if(B<0)b*=-1;b = to_string(b).length()-1; bb = pow(10,b); if(A - (A/aa)*aa == 0 &&B - (B/bb)*bb == 0 && a >= 2 && b >= 2){ cout<<(A/10)*B<