#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, y;
  cin >> n;
  int arr[] = {2, 7, 2, 3, 3, 4, 2, 5, 1, 2};
  x = n / 10;
  y = n % 10;
  int z = arr[x] * arr[y];
  cout << z << endl;
}
