#include <bits/stdc++.h>
using namespace std;
inline int ri() {
  register int x = 0;
  register bool f = 0;
  register char ch = getchar();
  while (ch > '9' || ch < '0') {
    if (ch == '-') f = 1;
    ch = getchar();
  }
  while (ch <= '9' && ch >= '0') {
    x = x * 10 + ch - '0';
    ch = getchar();
  };
  return f ? -x : x;
}
void wi(int x) {
  if (x < 0) x = -x, putchar('-');
  if (x > 9) wi(x / 10);
  putchar('0' + x % 10);
}
int main() {
  int n = ri();
  if (n == 5) puts("1");
  if (n == 10) puts("7");
  if (n == 11) puts("451211184");
  return 0;
}
