package com.codegym.task.task04.task0424; /* Three numbers */ import java.io.*; public class Solution { public static void main(String[] args) throws Exception { //write your code here BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(br.readLine()); int b = Integer.parseInt(br.readLine()); int c = Integer.parseInt(br.readLine()); int [] arr = new int[3]; arr[0] = a; arr[1] = b; arr[2] = c; task(arr); } public static void task(int [] arr){ if (arr[0] == arr[1] && arr[1] != arr[2]) System.out.println(arr[2]); else if (arr[0] == arr[2] && arr[0] != arr[1]) System.out.println(arr[1]); else if (arr[1] == arr[2] && arr[1] != arr[0]) System.out.println(arr[0]); else if (arr[0] != arr[2] && arr[1] != arr[0]) System.out.println(); } }