#include using namespace std; typedef long long int ll; int gcd(int p, int q){ if(q==0) return p; else return gcd(q, p%q); } int main() { int n; cin >> n; vector a(n); for(int i=0;i> a[i]; } vector > dp(n+1); dp[0][0] = 1; for(int i=0;i