program main

  ! <module> to import
  use, intrinsic :: iso_fortran_env

  ! require all variables to be explicitly declared
  implicit none
    
    ! variables for this <program>
    integer(kind=INT8) :: A, B, C
    
    ! STEP.01
    ! read out the data
    read *, A, B, C
    
    ! STEP.02
    ! output the result
    print '(I0)', min (B/A, C)

end program main