#include <bits/stdc++.h>
using namespace std;
int main() {
  int count[] = {2, 7, 2, 3, 3, 4, 2, 5, 1, 2};
  int n;
  cin >> n;
  int d2 = n % 10;
  int d1 = n / 10;
  int c1 = 0;
  cout << count[d1] * count[d2];
}
