Decompose into a Product

Given m as a product of n factors (n ≤ 500, each up to 1e9), count ordered n-tuples of positive integers whose product is m, modulo 1e9+9.

Medium7Number theoryCombinatoricsMathPrefix sumNo attempts yetTime limit2sMemory limit512 MB

Problem

A natural number mm is given as the product of nn natural numbers. Count the ways to decompose mm into nn natural numbers. The nn numbers you write down must multiply back to mm, and two decompositions that use the same elements in a different order count as different ways.

For example, if m=15m = 15 and n=2n = 2, there are four decompositions: (1,15)(1, 15), (3,5)(3, 5), (5,3)(5, 3), (15,1)(15, 1).

The nn numbers given in the input also count as one decomposition. The count grows very large, so print it modulo 10000000091000000009.

Input

The first line contains a natural number nn (1n5001 \le n \le 500).

The second line contains nn natural numbers separated by spaces. Each of them is at most 10910^9.

Output

Print the number of ways to decompose mm, modulo 10000000091000000009, on the first line.