program tax_increase
    integer a, b, i, ansa, ansb
    real m, n
    read *, a, b
    do i = 1, 1009
        ansa = int(i * 0.08)
        ansb = int(i * 0.1)
        if(ansa .eq. a .and. ansb .eq. b)then
            print *, i
            exit
        end if
    end do
end program