#include
using namespace std;
int main() { int n; cin >> n; int sum = 0; int arr[50] = { 0 }; for (int i = 0; i < n; i++) { cin >> arr[i]; } for (int i = 0; i < n; i++) { sum += arr[i]; } cout << sum << endl; return 0; }
#include
using namespace std;
int main() { int n; cin >> n; int sum = 0; int arr[50] = { 0 }; for (int i = 0; i < n; i++) { cin >> arr[i]; } for (int i = 0; i < n; i++) { sum += arr[i]; } cout << sum << endl; return 0; }