#P1257G. Divisor Set
Divisor Set
No submission language available for this problem.
Description
You are given an integer represented as a product of its prime divisors . Let be the set of all positive integer divisors of (including and itself).
We call a set of integers good if (and only if) there is no pair , such that and divides .
Find a good subset of with maximum possible size. Since the answer can be large, print the size of the subset modulo .
The first line contains the single integer () — the number of prime divisors in representation of .
The second line contains integers () — the prime factorization of .
Print the maximum possible size of a good subset modulo .
Input
The first line contains the single integer () — the number of prime divisors in representation of .
The second line contains integers () — the prime factorization of .
Output
Print the maximum possible size of a good subset modulo .
Samples
Note
In the first sample, and one of the maximum good subsets is .
In the second sample, and one of the maximum good subsets is .