#include <iostream>
using namespace std;
int main()
{
int n, s = 0;
cin >> n;
for (int i = 1; i <= n; i++)
{
int x;
cin >> x;
s += x;
}
cout << s;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int n, s = 0, i = 1;
cin >> n;
while (i <= n)
{
int x;
cin >> x;
s += x;
i++;
}
cout << s;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int n, s = 0, i = 1;
cin >> n;
do
{
int x;
cin >> x;
s += x;
i++;
}
while (i <= n);
cout << s;
return 0;
}