Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ICPC mode for virtual contests.
If you've seen these problems, a virtual contest is not for you - solve these problems in the archive.
If you just want to solve some problem from a contest, a virtual contest is not for you - solve this problem in the archive.
Never use someone else's code, read the tutorials or communicate with other person during a virtual contest.

No tag edit access

The problem statement has recently been changed. View the changes.

×
A. On Number of Decompositions into Multipliers

time limit per test

1 secondmemory limit per test

256 megabytesinput

standard inputoutput

standard outputYou are given an integer *m* as a product of integers *a*_{1}, *a*_{2}, ... *a*_{n} . Your task is to find the number of distinct decompositions of number *m* into the product of *n* ordered positive integers.

Decomposition into *n* products, given in the input, must also be considered in the answer. As the answer can be very large, print it modulo 1000000007 (10^{9} + 7).

Input

The first line contains positive integer *n* (1 ≤ *n* ≤ 500). The second line contains space-separated integers *a*_{1}, *a*_{2}, ..., *a*_{n} (1 ≤ *a*_{i} ≤ 10^{9}).

Output

In a single line print a single number *k* — the number of distinct decompositions of number *m* into *n* ordered multipliers modulo 1000000007 (10^{9} + 7).

Examples

Input

1

15

Output

1

Input

3

1 1 2

Output

3

Input

2

5 7

Output

4

Note

In the second sample, the get a decomposition of number 2, you need any one number out of three to equal 2, and the rest to equal 1.

In the third sample, the possible ways of decomposing into ordered multipliers are [7,5], [5,7], [1,35], [35,1].

A decomposition of positive integer *m* into *n* ordered multipliers is a cortege of positive integers *b* = {*b*_{1}, *b*_{2}, ... *b*_{n}} such that . Two decompositions *b* and *c* are considered different, if there exists index *i* such that *b*_{i} ≠ *c*_{i}.

Codeforces (c) Copyright 2010-2021 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Apr/16/2021 18:08:43 (j2).

Desktop version, switch to mobile version.

Supported by

User lists

Name |
---|