#include <bits/stdc++.h>
#include <algorithm>
#include <iostream>

using namespace std ;

typedef long long ll ;
int a , b ;

int main (){
	scanf("%d%d",&a,&b);
	
  if(a<=9 && b<=9){
    printf("%d",a*b);
  }
  else{
    printf("%-1d\n");
  }
    