#include using namespace std; int main() { int n; long long ans=0; cin >> n; vector a(n); for(int i=0; i> a.at(i); for(int i=0; i