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