#include <iostream>using namespace std;int main(){ int a,b,c; while(cin >> a >> b >> c){ cout << a*(a>=b&&a>=c)+b*(b>=a&&b>=c&&b!=a)+c*(c>=a&&c>=b&&c!=a&&c!=b) << endl; }}