

from math import factorial







def snake_case__  (			__SCREAMING_SNAKE_CASE = 20 )		->							int:
		UpperCAmelCase_						=				2 * n  # middle entry of odd rows starting at row 3 is the solution for n = 1,
		# 2, 3,...
		UpperCAmelCase_						=				n // 2

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


if __name__ == "__main__":
			import sys

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






import unittest

from transformers import is_torch_available
from transformers.testing_utils import require_sentencepiece, require_tokenizers, require_torch, slow, torch_device


if is_torch_available():
			from transformers import AutoModelForSeqaSeqLM, AutoTokenizer



@require_torch
@require_sentencepiece
@require_tokenizers
class 	lowerCamelCase      (						unittest.TestCase  ):







					'''simple docstring'''







					@slow
					def    A__		(			self     ):
							UpperCAmelCase_						=				AutoModelForSeqaSeqLM.from_pretrained("google/mt5-small"    ,	return_dict=lowerCAmelCase     ).to(lowerCAmelCase     )
							UpperCAmelCase_						=				AutoTokenizer.from_pretrained("google/mt5-small"     )

							UpperCAmelCase_						=				tokenizer("Hello there"    ,	return_tensors="pt"     ).input_ids
							UpperCAmelCase_						=				tokenizer("Hi I am"    ,	return_tensors="pt"     ).input_ids

							UpperCAmelCase_						=				model(input_ids.to(lowerCAmelCase     )    ,	labels=labels.to(lowerCAmelCase     )     ).loss
							UpperCAmelCase_						=				-(labels.shape[-1] * loss.item())

							UpperCAmelCase_						=				-84.9127
							self.assertTrue(abs(mtf_score - EXPECTED_SCORE     ) < 1e-4     )

