/** * author: boutarou * created: 02.08.2020 11:51:53 **/ #include using namespace std; #define rep(i,n) for(int i = 0; i < int(n); i++) using ll = long long; using P = pair; int main() { int cnt = 55; rep(i, 9) { int x; cin >> x; cnt -= x; } cout << cnt << endl; return 0; }