#include <bits/stdc++.h>
int main() {
  int Num;
  int Arr[10] = {2, 7, 2, 3, 3, 4, 2, 5, 1, 2};
  scanf("%d", &Num);
  int first = Num / 10;
  int Last = Num - first * 10;
  int counter = Arr[first] * Arr[Last];
  printf("%d", counter);
  return 0;
}
