#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() using ll = long long; int main() { int tot = 0; for (int i = 1; i <= 10; i++) tot += i; for (int i = 0; i < 9; i++) { int a; cin >> a; tot -= a; } cout << tot << endl; return 0; }