#include <bits/stdc++.h>
using namespace std;

int a, b, c;

int main()
{
	cin >> a >> b >> c;
	if (a == b)
		cout << c << '\n';
	else if (a == c)
		cout << b << '\n';
	else 
		cout << a << '\n';
	return 0;
}