#include using namespace std; typedef long long ll; typedef long double ld; using pll = pair; using Graph = vector>; #define all(v) v.begin(), v.end() #define rep(i, n) for(ll i = 0; i < (ll)(n); i++) #define rep2(i,l,r) for(ll i = (l); i <= (ll)(r); i++) #define rep3(i,l,r) for(ll i = (l); i >= (ll)(r); i--) #define dup(x,y) (((x)+(y)-1)/(y)) // x/yの除算の切り上げ template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } const int inf = 1001001001; const ll INF = 1LL << 60; const ll mod = 1000000007; const ld pi = acos(-1); //xor演算 //a^b=b^a //a^(b^c)=(a^b)^c //a^a=0 //a+b=a^b + 2(a&b) //(4a)^(4a+1)^(4a+2)^(4a+3)=0 // union by size + path having // 最初にUnionFind a(n);で宣言 class UnionFind { public: vector par; // 各元の親を表す配列 vector siz; // 素集合のサイズを表す配列(1 で初期化) // Constructor UnionFind(ll sz_): par(sz_),siz(sz_, 1LL){ for (ll i=0; i v; //セグ木本体.ただの配列を使う ll id_e; //単位元 区間の和なら0、区間の積なら1、最大値なら-1とか、最小値ならINF、最大公約数なら0 //二項演算 ll binary_op(ll a,ll b){ return a+b;//処理 区間の和ならa+b、区間の積ならa*b、最大値ならmax(a,b)、最初値ならmin(a,b)、最大公約数ならgcd(a,b) } //初期化関数.数列と単位元を受け取って初期化 void build(vector a,ll b){ id_e = b; m = 1; while(m<(ll)a.size()) m*=2; //aの項数以上の2べきのうち最小のものを求める n = 2*m-1; v.resize(n); for (ll i=0; i<(ll)a.size(); i++) v[m-1+i]=a[i]; //葉(1段目)の値 for (ll i=a.size(); i=0; i--){ //2段目以降を順番に埋めていく v[i]=binary_op(v[2*i+1],v[2*i+2]); } } //ある項の値をbに書き換え void update(ll a,ll b) { a+=(m-1); v[a]=b; //葉(1段目)を書き換え while((a-1)/2 != a){ //2段目以降を順番に書き換え a=(a-1)/2; v[a]=binary_op(v[2*a+1],v[2*a+2]); } } //区間和の補助関数 //cur:今見ている頂点の,配列vでの添字 //[l, r]:v[cur]がカバーする区間 ll seg_sub(ll a,ll b,ll cur,ll l,ll r){ if(a<=l && r<=b) return v[cur]; //今見ている頂点のカバーする区間が,[a,b]に完全に収まっている場合 if(r > G; vector d; graph_d(ll n){ init(n); } void init(ll n){ V = n; G.resize(V); d.resize(V); rep(i,V){ d[i] = INF; } } void add_edge(ll s, ll t, ll cost){ edge e; e.to = t, e.cost = cost; G[s].push_back(e); } void dijkstra(ll s){ rep(i,V){ d[i] = INF; } d[s] = 0; priority_queue, greater > que; que.push(pll(0,s)); while(!que.empty()){ pll p = que.top(); que.pop(); ll v = p.second; if(d[v]d[v]+e.cost){ d[e.to] = d[v]+e.cost; que.push(pll(d[e.to],e.to)); } } } } }; ll modpow(ll x,ll n){ x=x%mod; if(n==0) return 1; else if(n%2==1){ return (x*modpow(x,n-1))%mod; } else return modpow((x*x)%mod,n/2)%mod; } ll modcom(ll n,ll k){ ll x=1; for(ll i=n-k+1; i<=n; i++){ x=x*i%mod; } ll y=1; for(ll i=1; i<=k; i++){ y=y*i%mod; } y=modpow(y,mod-2); return x*y%mod; } bool is_prime(ll n){ switch(n){ case 0: case 1: return false; case 2: case 3: return true; } if(n%2==0 || n%3==0) return false; for(ll i=5; i*i<=n; i+=6){ if(n%i==0) return false; if(n%(i+2)==0) return false; } return true; } ll digsum(ll n){ int res=0; while(n > 0){ res+=n%10; //res++;だと桁数を求める関数,res+=n%10;なら格桁の和を求める関数 n/=10; } return res; } vector divisor(ll n){ vector ret; for(ll i=1; i*i<=n; i++){ if(n%i==0){ ret.push_back(i); if(i*i!=n) ret.push_back(n/i); } } sort(ret.begin(),ret.end()); return ret; } vector divisor_cnt(ll n){ vector cnt(n); for(ll i=1; i<=n; i++){ for(ll j=i; j<=n; j+=i){ cnt[j]++; } } return cnt; } map prime_factor(ll n){ map res; res[1]=1; for(ll i=2; i*i<=n; i++){ while(n%i==0){ res[i]++; n/=i; } } if(n!=1) res[n]=1; return res; } template class ModInt { using i64 = std::int_fast64_t; private: i64 m_value; public: constexpr ModInt(const i64 x = 0) noexcept : m_value(x % Modulus) { if (m_value < 0) m_value += Modulus; } constexpr const i64& value() const noexcept { return m_value; } constexpr ModInt& operator+=(const ModInt rhs) noexcept { m_value += rhs.m_value; if (m_value >= Modulus) { m_value -= Modulus; } return *this; } constexpr ModInt& operator-=(const ModInt rhs) noexcept { if (m_value < rhs.m_value) { m_value += Modulus; } m_value -= rhs.m_value; return *this; } constexpr ModInt& operator*=(const ModInt rhs) noexcept { m_value = m_value * rhs.m_value % Modulus; return *this; } constexpr ModInt& operator/=(ModInt rhs) noexcept { *this *= rhs.inv(); return *this; } constexpr ModInt& operator++() noexcept { *this += 1; return *this; } constexpr ModInt operator++(int) noexcept { ModInt res = *this; *this += 1; return res; } constexpr ModInt& operator--() noexcept { *this -= 1; return *this; } constexpr ModInt operator--(int) noexcept { ModInt res = *this; *this -= 1; return res; } constexpr ModInt inv() const noexcept { i64 q = m_value; i64 b = Modulus, u = 1, v = 0; while (b) { i64 t = q / b; q -= t * b; std::swap(q, b); u -= t * v; std::swap(u, v); } u %= Modulus; if (u < 0) u += Modulus; return u; } constexpr ModInt pow(i64 k) const noexcept { ModInt res = 1; ModInt tmp; if (k < 0) { tmp = (*this).inv(); k = -k; } else { tmp = *this; } for (; k > 0; k >>= 1) { if (k & 1) res *= tmp; tmp *= tmp; } return res; } friend constexpr ModInt operator+(const ModInt& lhs, const ModInt& rhs) noexcept { return ModInt(lhs) += rhs; } friend constexpr ModInt operator-(const ModInt& lhs, const ModInt& rhs) noexcept { return ModInt(lhs) -= rhs; } friend constexpr ModInt operator*(const ModInt& lhs, const ModInt& rhs) noexcept { return ModInt(lhs) *= rhs; } friend constexpr ModInt operator/(const ModInt& lhs, const ModInt& rhs) noexcept { return ModInt(lhs) /= rhs; } friend constexpr bool operator<(const ModInt& lhs, const ModInt& rhs) noexcept { return lhs.m_value < rhs.m_value; } friend constexpr bool operator>(const ModInt& lhs, const ModInt& rhs) noexcept { return lhs.m_value > rhs.m_value; } friend constexpr bool operator<=(const ModInt& lhs, const ModInt& rhs) noexcept { return lhs.m_value <= rhs.m_value; } friend constexpr bool operator>=(const ModInt& lhs, const ModInt& rhs) noexcept { return lhs.m_value >= rhs.m_value; } friend constexpr bool operator==(const ModInt& lhs, const ModInt& rhs) noexcept { return lhs.m_value == rhs.m_value; } friend constexpr bool operator!=(const ModInt& lhs, const ModInt& rhs) noexcept { return lhs.m_value != rhs.m_value; } friend std::istream& operator>>(std::istream& is, ModInt& rhs) { i64 a; is >> a; rhs = a; return is; } friend std::ostream& operator<<(std::ostream& os, const ModInt& rhs) { os << rhs.m_value; return os; } }; int main(){ ios::sync_with_stdio(false); cin.tie(0); ld n,x=0; cin >> n; rep(i,n){ ld y; cin >> y; x+=y; } cout << fixed << setprecision(10); cout << x << endl; }