#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  int f, s;
  s = n % 10;
  f = n / 10;
  int ans = 0;
  int arr[10] = {2, 7, 2, 3, 3, 4, 2, 5, 1, 2};
  ans = arr[s] * arr[f];
  printf("%d", ans);
  return 0;
}
