#include using namespace std; int main() { int ans = 55; for (int i = 0; i < 9; ++i) { int b; cin >> b; ans -= b; } cout << ans << endl; return 0; }