#include <bits/stdc++.h>
using namespace std;
int main() {
  int f, n, ar[101], sum = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> ar[i];
    f = abs(ar[i]);
    sum += f;
  }
  cout << sum << endl;
}
