PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN

#SP0000208. Số ước có đúng 75 ước của giai thừa (756)

HỌC THEO LỘ TRÌNH

Bài tập thuộc lộ trình

1 lộ trình

Số ước có đúng 75 ước của giai thừa (756)

756

Source: AtCoder

Version: Phuoc Hung OJ Extended

Problem Statement

For a positive integer xx, let d(x)d(x) be the number of its positive divisors. For example, d(6)=4d(6)=4, since the divisors of 66 are 1,2,3,61,2,3,6.

A positive integer is called a 75-divisor number if it has exactly 7575 positive divisors.

Given NN, count the positive integers xx such that x∣N!x\mid N! and d(x)=75d(x)=75.

Input

The only line contains the integer NN.

Output

Print the number of divisors of N!N! having exactly 7575 positive divisors.

Subtasks

  • Subtask 1 (20 points): 1≤N≤251\le N\le 25.
  • Subtask 2 (30 points): 1≤N≤601\le N\le 60.
  • Subtask 3 (50 points): 1≤N≤1001\le N\le 100.

Examples

Input

10

Output

1

Explanation

10!=3628800=28⋅34⋅52⋅710!=3628800=2^8\cdot3^4\cdot5^2\cdot7. The divisor 32400=24⋅34⋅5232400=2^4\cdot3^4\cdot5^2 has (4+1)(4+1)(2+1)=75(4+1)(4+1)(2+1)=75 positive divisors. There is no other such divisor of 10!10!, so the answer is 11.