program ABC075A
    implicit none
    integer(8)::A,B,C
    read(5,*)A,B,C

    if(A==B)then
        print'(i0)',C
    else if(B==C)then
        print'(i0)',A
    else if(A==C)then
        print'(i0)',B
    end if
end program ABC075A