#include<Iostream>
using namespace std;
int main()
{
int m,n;
cin >>m>>n;
int proizvod;
proizvod=m*n;
if (proizvod > 10)
cout <<„10″<<endl<<proizvod-10<<endl;
else cout <<proizvod <<endl;
return 0;
}
using namespace std;
int main()
{
int m,n;
cin >>m>>n;
int proizvod;
proizvod=m*n;
if (proizvod > 10)
cout <<„10″<<endl<<proizvod-10<<endl;
else cout <<proizvod <<endl;
return 0;
}