#include<iostream> using namespace std; int main(){ int n,sum=0; cin>>n; while(n--){ int t; cin>>t; if(t>=10)sum+=t; } cout<<sum; return 0; }