#include using namespace std; #define MOD 1000000007 #define pii pair #define pll pair #define V vector #define pb push_back #define mp make_pair #define pq priority_queue #define FIN(x) freopen(x,"r",stdin) #define FOUT(x) freopen(x,"w",stdout) #define ALL(x) x.begin(),x.end() #define M(a,x) memset(a,x,sizeof(a)) #define S(x) scanf("%d",&x) #define Sl(x) scanf("%lld",&x) #define scs(x) scanf("%s",x); #define SZ(x) (int)x.size() #define print(x) printf("%d",x); #define nl printf("\n") #define fr first #define se second #define printl(x) printf("%lld",x) #define F(i,a,n) for(int i=a;i> n; LL ans = 0; // cout << f(2) << endl; for(int i = 0 ; i < n ; i++) { Sl(a[i]); ans += a[i] + f(a[i]); // cout << a[i] + f(a[i]) <<" "; } cout << ans << endl; }