
'''simple docstring'''





from math import factorial

def      A (       A_							:					List[str] = 20       ):
						snake_case       :     Any =    2 * n  # middle entry of odd rows starting at row 3 is the solution for n = 1,
						# 2, 3,...
						snake_case       :     Tuple =    n // 2

						return int(factorial(A_       ) / (factorial(A_       ) * factorial(n - k       ))       )


if __name__ == "__main__":
						import sys

						if len(sys.argv) == 1:
												print(solution(20))
						else:
												try:
																		UpperCAmelCase    					=   int(sys.argv[1])
																		print(solution(n))
												except ValueError:
																		print("Invalid entry - please enter a number.")



'''simple docstring'''





from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_torch_available,
)


UpperCAmelCase    					=   {
    "configuration_swiftformer": [
        "SWIFTFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "SwiftFormerConfig",
        "SwiftFormerOnnxConfig",
    ]
}

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						UpperCAmelCase    					=   [
						    "SWIFTFORMER_PRETRAINED_MODEL_ARCHIVE_LIST",
						    "SwiftFormerForImageClassification",
						    "SwiftFormerModel",
						    "SwiftFormerPreTrainedModel",
						]

if TYPE_CHECKING:
						from .configuration_swiftformer import (
						    SWIFTFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP,
						    SwiftFormerConfig,
						    SwiftFormerOnnxConfig,
						)

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_swiftformer import (
												    SWIFTFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
												    SwiftFormerForImageClassification,
												    SwiftFormerModel,
												    SwiftFormerPreTrainedModel,
												)

else:
						import sys

						UpperCAmelCase    					=   _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)

