#include #include #include #include #include #include #include #include using namespace std; int main() { long long n, m, total = 0, sqn2 = 0; cin >> n; vector v(n); for (int i = 0; i < n; i++){ cin >> v[i]; total += v[i]; } cin >> m; for (int i = 0; i