#include <bits/stdc++.h>
using namespace std;
int main() {
  long long x, y;
  cin >> x >> y;
  if (x >= 1 && x <= 9 && y >= 1 && y <= 9)
    cout << x * y << "\n";
  else
    cout << 0 << "\n";
  return 0;
}
