#include <bits/stdc++.h>
using namespace std;
int options[] = {2, 7, 2, 3, 3, 4, 2, 5, 1, 2};
int main(void) {
  string s;
  cin >> s;
  int total = 1;
  for (int i = 0; i < 2; ++i) {
    total *= options[s[i] - '0'];
  }
  cout << total << endl;
  return 0;
}
