Start 2023-03-05 09:30:00

数论初步-模运算

End 2023-03-05 15:00:00
Contest is over.
Now 2025-03-20 03:03:17

A. 数论:唯一性定理 约数个数

Description

给定 n 个正整数 ai,请你输出这些数的乘积的约数个数,答案对 10^9+7 取模

Input

第一行包含整数 n。 接下来 n 行,每行包含一个整数 ai。

Output

输出一个整数,表示所给正整数的乘积的约数个数,答案需对 10^9+7 取模。

Examples

Input

3
2
6
8

Output

12

Hint

1≤n≤100, 1≤ai≤2×10^9


Submit

Login

Signup
Time Limit 1 second
Memory Limit 128 MB
Submit