#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; }