#include <iostream> #include <vector> #include <string> #include <algorithm> #include <cstdio> #include <cstring> #include <cmath> using namespace std; int main() { int s = 55; for (int i = 0; i < 9; i++) { int b; cin >> b; s -= b; } cout << s << endl; return 0; }