#include using namespace std; int main(){ vector B(9); for (int i = 0; i < 9; i++){ cin >> B[i]; } int sum = 0; for (int i = 0; i < 9; i++){ sum += B[i]; } cout << 55 - sum << endl; }