#include <cstdio>
#include <cstring>

#define forn(i, n) for (int i = 0; i < (int)(n); i++)

#define mlen 120

int n, a[250];
int r[mlen];

void Mul( int x )
{
  forn(i, mlen)
    r[i] *= x;
  forn(i, mlen)
    if (r[i] >= 10)
      r[i + 1] += r[i] / 10, r[i] %= 10;
}

void Inc()
{
  r[0]++;
  for (int i = 0; r[i] >= 10; i++)
    r[i + 1]++, r[i] = 0;
}

void Out()
{
  int i = mlen - 1;
  while (!r[i])
    i--;
  while (i >= 0)
    printf("%d", r[i--]);
  puts("");
}              

int main()
{
  freopen("tortik.in", "r", stdin);
  freopen("tortik.out", "w", stdout);

  memset(r, 0, sizeof(r)), r[0] = 1;
  scanf("%d", &n);
  forn(i, n)
    a[i] = i + 1;
  for (int i = 2; i <= n; i++)
  {
    int ma = 0;
    forn(j, n)
      if (a[j] % i == 0)
      {
        int k = 0;
        while (a[j] % i == 0)
          a[j] /= i, k++;
        if (k > ma)
          ma = k;
      }
    while (ma--)
      Mul(i);
  }
  Inc();
  Out();
  return 0;
}