#[allow(unused)]
use {
    std::error::Error,
    std::fmt::Debug,
    std::str::FromStr,
    std::io::prelude::*,
    std::io::{stdin, stdout, BufReader, BufWriter},
    std::collections::HashSet,
    std::cmp::min,
};

type BoxResult<T> = Result<T, Box<dyn std::error::Error>>;

const K: usize = 75;

fn main() -> BoxResult<()> {
    let mut scanner = Scanner::new(stdin());
    
    let n = scanner.read::<usize>()?;
    
    println!("{}", solve(n));

    Ok(())
}

fn solve(n: usize) -> usize {
    let mut prime_counts = vec![0; n + 1];
    for i in 2..(n + 1) {
        let primes = prime_factorization(i);
        for (q, c) in primes {
            prime_counts[q] += c;
        }
    }
    let mut dp = vec![vec![0; K + 1]; n + 1];
    dp[1][1] = 1;
    for i in 2..(n + 1) {
        for j in 1..(K + 1) {
            if K % j != 0 {
                continue;
            }
            dp[i][j] = dp[i - 1][j];
            for k in 2..(prime_counts[i] + 1) {
                if j % (k + 1) != 0 {
                    continue;
                }
                dp[i][j] += dp[i - 1][j / (k + 1)];
            }
        }
    }
    dp[n][K]
}

fn prime_factorization(n: usize) -> Vec<(usize, usize)> {
    let mut prime_counts = vec![0; n + 1];
    let mut index = 1;
    while index * index <= n {
        if n % index != 0 {
            index += 1;
            continue;
        }
        let q = n / index;
        if is_prime(index) {
            prime_counts[index] = count(n, index);
        }
        if q != index && is_prime(q) {
            prime_counts[q] = count(n, q);
        }
        index += 1;
    }
    (0..(n + 1)).filter(|i| prime_counts[*i] > 0).map(|i| (i, prime_counts[i])).collect()
}

fn is_prime(n: usize) -> bool {
    if n <= 1 {
        return false;
    }
    let mut index = 2;
    while index * index <= n {
        if n % index == 0 {
            return false;
        }
        index += 1;
    }
    true
}

fn count(mut n: usize, p: usize) -> usize {
    if n == 0 {
        return 0;
    }
    let mut c = 0;
    while n % p == 0 {
        c += 1;
        n /= p;
    }
    c
}

pub struct Scanner<R> {
    reader: BufReader<R>,
    buffer: String,
}
impl<R> Scanner<R>
where
    R: Read,
{
    pub fn new(inner: R) -> Scanner<R> {
        let reader = BufReader::new(inner);
        let buffer = String::new();
        Scanner {
            reader: reader,
            buffer: buffer,
        }
    }
    pub fn with_capacity(capacity: usize, inner: R) -> Scanner<R> {
        let reader = BufReader::with_capacity(capacity, inner);
        let buffer = String::new();
        Scanner {
            reader: reader,
            buffer: buffer,
        }
    }
    pub fn read_line(&mut self) -> BoxResult<String> {
        self.reader.read_line(&mut self.buffer)?;
        let cloned = self.buffer.trim().to_string();
        self.buffer.clear();
        Ok(cloned)
    }
 
    pub fn read<T>(&mut self) -> BoxResult<T>
    where
        T: FromStr,
        T::Err: Debug + Error + 'static,
    {
        self.reader.read_line(&mut self.buffer)?;
        let parsed = self.buffer.trim().parse()?;
        self.buffer.clear();
        Ok(parsed)
    }
    pub fn read_two<T, U>(&mut self) -> BoxResult<(T, U)>
    where
        T: FromStr + Copy,
        T::Err: Debug + Error + 'static,
        U: FromStr + Copy,
        U::Err: Debug + Error + 'static,
    {
        self.reader.read_line(&mut self.buffer)?;
        let (a, b) = {
            let params = self.buffer.trim().split_whitespace().collect::<Vec<_>>();
            let a = params[0].parse()?;
            let b = params[1].parse()?;
            (a, b)
        };
        self.buffer.clear();
        Ok((a, b))
    }
    pub fn read_three<T, U, V>(&mut self) -> BoxResult<(T, U, V)>
    where
        T: FromStr + Copy,
        T::Err: Debug + Error + 'static,
        U: FromStr + Copy,
        U::Err: Debug + Error + 'static,
        V: FromStr + Copy,
        V::Err: Debug + Error + 'static,
    {
        self.reader.read_line(&mut self.buffer)?;
        let (a, b, c) = {
            let params = self.buffer.trim().split_whitespace().collect::<Vec<_>>();
            let a = params[0].parse()?;
            let b = params[1].parse()?;
            let c = params[2].parse()?;
            (a, b, c)
        };
        self.buffer.clear();
        Ok((a, b, c))
    }
    pub fn read_four<T, U, V, W>(&mut self) -> BoxResult<(T, U, V, W)>
    where
        T: FromStr + Copy,
        T::Err: Debug + Error + 'static,
        U: FromStr + Copy,
        U::Err: Debug + Error + 'static,
        V: FromStr + Copy,
        V::Err: Debug + Error + 'static,
        W: FromStr + Copy,
        W::Err: Debug + Error + 'static,
    {
        self.reader.read_line(&mut self.buffer)?;
        let (a, b, c, d) = {
            let params = self.buffer.trim().split_whitespace().collect::<Vec<_>>();
            let a = params[0].parse()?;
            let b = params[1].parse()?;
            let c = params[2].parse()?;
            let d = params[3].parse()?;
            (a, b, c, d)
        };
        self.buffer.clear();
        Ok((a, b, c, d))
    }
    pub fn read_vector<T>(&mut self) -> BoxResult<Vec<T>>
    where
        T: FromStr + Copy,
        T::Err: Debug + Error + 'static,
    {
        self.reader.read_line(&mut self.buffer)?;
        let parsed_vec = self
            .buffer
            .trim()
            .split_whitespace()
            .map(|s| s.parse())
            .collect::<Result<Vec<_>, _>>()?;
        self.buffer.clear();
        Ok(parsed_vec)
    }
    pub fn read_matrix<T>(&mut self, lines: u64) -> BoxResult<Vec<Vec<T>>>
    where
        T: FromStr + Copy,
        T::Err: Debug + Error + 'static,
    {
        let mut parsed_matrix = vec![];
        for _ in 0..lines {
            self.reader.read_line(&mut self.buffer)?;
            parsed_matrix.push(
                self.buffer
                    .trim()
                    .split_whitespace()
                    .map(|s| s.parse())
                    .collect::<Result<Vec<_>, _>>()?,
            );
            self.buffer.clear();
        }
        Ok(parsed_matrix)
    }
    pub fn read_chars(&mut self) -> BoxResult<Vec<char>> {
        self.reader.read_line(&mut self.buffer)?;
        let chars = self.buffer.trim().chars().collect::<Vec<_>>();
        self.buffer.clear();
        Ok(chars)
    }
}

Measured memory_bytes: 2292