Type: Default 1000ms 256MiB

子序列的和Ⅰ

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Problem Description

定义一个数组的权值和为:假设数组乘积为SS,数组的权值和为使得x∗y=Sx*y=S的所有(x,y)(x,y)对数(x,yx, y均为正整数)
给你一个数组AA,请你求出他的所有非空子序列的权值和,由于答案可能很大,请对998244353998244353取模
例如S=2S=2, 那么就有22对(x,y)(x, y)符合要求, 分别为(1,2),(2,1)(1, 2), (2, 1)

Input Format

第一行一个整数nn,代表数组大小
第二行nn个整数,表示给定的数组A

Output Format

一行一个整数,表示答案

Sample

输入样例1

2
1 2

输出样例1

5

Hint

1≤n≤105,1≤a[i]≤109,1 \leq n \leq 10^5, 1 \leq a[i] \leq 10^9, 保证所有a[i]均为1或质数