


'''simple docstring'''






def     UpperCamelCase_      (   A__ :       int = 3							,   A__ :       int = 7							,   A__ :       int = 1_00_00_00 ):
  '''simple docstring'''





  lowerCAmelCase_      :				Dict      =       0
  lowerCAmelCase_      :				Optional[Any]      =       1

  for current_denominator in range(1							,   limit + 1 ):
    lowerCAmelCase_      :				Optional[Any]      =       current_denominator * numerator // denominator
    if current_denominator % denominator == 0:
      current_numerator -= 1
    if current_numerator * max_denominator > current_denominator * max_numerator:
      lowerCAmelCase_      :				List[str]      =       current_numerator
      lowerCAmelCase_      :				Union[str, Any]      =       current_denominator
  return max_numerator


if __name__ == "__main__":
  print(solution(numerator=3, denominator=7, limit=100_0000))







'''simple docstring'''






from ...utils import is_note_seq_available, is_transformers_available, is_torch_available
from ...utils import OptionalDependencyNotAvailable


try:
  if not (is_transformers_available() and is_torch_available()):
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  from ...utils.dummy_torch_and_transformers_objects import *  # noqa F403
else:
  from .notes_encoder import SpectrogramNotesEncoder
  from .continous_encoder import SpectrogramContEncoder
  from .pipeline_spectrogram_diffusion import (
      SpectrogramContEncoder,
      SpectrogramDiffusionPipeline,
      TaFilmDecoder,
  )

try:
  if not (is_transformers_available() and is_torch_available() and is_note_seq_available()):
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  from ...utils.dummy_transformers_and_torch_and_note_seq_objects import *  # noqa F403
else:
  from .midi_utils import MidiProcessor



