using System; class Program { static void Main(string[] args) { var s0 = Console.ReadLine(); var s1 = Console.ReadLine(); var s2 = Console.ReadLine(); if (s0 == s1) Console.WriteLine(s0); else Console.WriteLine(s2); Console.ReadLine(); } }