#include #include #include #include #include using namespace std; long long sqroot(long long n) { vector facts; facts.push_back(1); long long sum=0; long long tmp=n; while(tmp%2==0) { facts.push_back(2); tmp/=2; } for(long long i=3;i*i<=tmp;i+=2) { while(tmp%i==0) { facts.push_back(i); tmp/=i; } } if(tmp>1) facts.push_back(tmp); tmp=n; for(long long i=0;i> n; vector a(n); for (int i = 0; i < n; i++) { cin >> a[i]; } long long sum=0; for(int i=0;i