#include <iostream>
using namespace std;

int main(){
	bool b[10]{};
	for(int i = 0; i < 9; i++){
		int bb;
		cin >> bb;
		b[--bb] = true;
	}
	for(int i = 0; i < 10; i++) if(!b[i]) cout << i + 1 << endl;
}