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