#include char*t,s[999];long a;main(b){a=strtol(gets(s),&t,0);a>9?a=9:0;b=atoi(t);a=!putchar(a*b-a-b?a*b