#include using namespace std; typedef long long ll; typedef vector VI; typedef vector VVI; typedef vector VL; typedef vector VVL; typedef pair PII; #define FOR(i, a, n) for (int i = (int)a; i < (int)n; ++i) #define REP(i, n) FOR(i, 0, n) #define ALL(x) x.begin(), x.end() #define MOD 1000000007 #define INF 1000000000 #define PI 3.14159265359 #define EPS 1e-12 int main(void) { bool a[11]; memset(a, false, sizeof(a)); REP(i, 9) { int b; cin >> b; a[b] = true; } FOR(i, 1, 11) { if(!a[i]) { cout << i << endl; } } return 0; }