package pl.codegym.task.task04.task0424; /* Three numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //tutaj wpisz swój kod BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(reader.readLine()); int b = Integer.parseInt(reader.readLine()); int c = Integer.parseInt(reader.readLine()); if (a!=b && a!=c && b==c){ System.out.println(a); } else if(b!=a && b!=c && a==c){ System.out.println(b); } else if(c!=a && c!=b && a==b){ System.out.println(c); } else if(c!=a && a!=b && b!=c) { } else if(a==b && a==c) { } } }