




"""simple docstring"""







def      __snake_case (				_lowercase			,_lowercase    ):


    """simple docstring"""







    UpperCamelCase              =	[1]
    for i in range(2			,lowerCAmelCase__    ):
        factorials.append(factorials[-1] * i    )
    assert 0 <= k < factorials[-1] * n, "k out of bounds"

    UpperCamelCase              =	[]
    UpperCamelCase              =	list(range(lowerCAmelCase__    )    )

    # Find permutation
    while factorials:
        UpperCamelCase              =	factorials.pop()
        UpperCamelCase              =	divmod(lowerCAmelCase__			,lowerCAmelCase__    )
        permutation.append(elements[number]    )
        elements.remove(elements[number]    )
    permutation.append(elements[0]    )

    return permutation


if __name__ == "__main__":
  import doctest

  doctest.testmod()






_lowercase		:  Optional[Any]			       ="""
# Transformers installation
! pip install transformers datasets
# To install from source instead of the last release, comment the command above and uncomment the following one.
# ! pip install git+https://github.com/huggingface/transformers.git
"""

_lowercase		:  Union[str, Any]			       =[{"""type""": """code""", """content""": INSTALL_CONTENT}]
_lowercase		:  List[Any]			       ={
    """{processor_class}""": """FakeProcessorClass""",
    """{model_class}""": """FakeModelClass""",
    """{object_class}""": """FakeObjectClass""",
}
