#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000;
signed main() {
  int a, b;
  cin >> a >> b;
  if (a < 1 || a > 9) return -1;
  if (b < 1 || b > 9) return -1;
  cout << (a * b) << endl;
}
