// url: http://abc075.contest.atcoder.jp/tasks/abc075_a

import std.algorithm, std.conv, std.range, std.stdio, std.string;

void main()
{
  auto a = readln.split.to!(int[]);
  a.sort();
  writeln(a[0] == a[1] ? a[2] : a[0]);
}
