#include <bits/stdc++.h>
using namespace std;
int main() {
  int A, B, p;
  cin >> A >> B;
  if (A < 1 || B < 1 || A > 9 || B > 9) {
    cout << p << endl;
  } else {
    p = A * B;
  }
  cout << p;
}
