#include using namespace std; int main() { int n; cin >> n; vector c(n); for (int i = 0; i < n; i++){ cin >> c[i]; } cout << abs(accumulate(c.begin(), c.end(), 0LL)) << endl; }