#include using namespace std; int main(){ int n; int score= 0; for( int i = 0; i < 9; i++){ cin >> n; if( n == 0 ){ score += 10; }else{ score += n; } } cout << score << endl; return 0; }