program ABC066A
    implicit none
    integer(8)::i,j
    integer(8)::result=30000
    integer(8),dimension(3)::A
    read(5,*)(A(i),i=1,3)

    do i=1,2
        do j=i+1,3
            if(A(i)+A(j)<result)then
                result=A(i)+A(j)
            end if
        end do
    end do

    print'(i0)',result
end program ABC066A