'''simple docstring'''


from ...configuration_utils import PretrainedConfig
from ...utils import logging


__lowerCAmelCase	:       Any						       =	logging.get_logger(__name__)

__lowerCAmelCase	:       Dict						       =	{
    "unc-nlp/lxmert-base-uncased": "https://huggingface.co/unc-nlp/lxmert-base-uncased/resolve/main/config.json",
}






class 						A   (   UpperCAmelCase   ):
							a_        =      '''lxmert'''
							a_        =      {}





							def __init__(      self				:							int     ,		__a				:							Dict=3_0_5_2_2     ,		__a				:							Union[str, Any]=7_6_8     ,		__a				:							int=1_2     ,		__a				:							Optional[int]=9_5_0_0     ,		__a				:							int=1_6_0_0     ,		__a				:							List[Any]=4_0_0     ,		__a				:							Tuple=3_0_7_2     ,		__a				:							Any="gelu"     ,		__a				:							List[str]=0.1     ,		__a				:							Dict=0.1     ,		__a				:							Tuple=5_1_2     ,		__a				:							str=2     ,		__a				:							str=0.0_2     ,		__a				:							Tuple=1e-12     ,		__a				:							str=9     ,		__a				:							List[str]=5     ,		__a				:							str=5     ,		__a				:							List[str]=2_0_4_8     ,		__a				:							List[str]=4     ,		__a				:							int=6.6_7     ,		__a				:							Any=True     ,		__a				:							List[Any]=True     ,		__a				:							List[Any]=True     ,		__a				:							Optional[int]=True     ,		__a				:							List[Any]=True     ,		__a				:							Tuple=True     ,		__a				:							Optional[Any]=True     ,		**__a				:							Any     ,		)							->	int:
								__UpperCAmelCase							=			vocab_size
								__UpperCAmelCase							=			hidden_size
								__UpperCAmelCase							=			num_attention_heads
								__UpperCAmelCase							=			hidden_act
								__UpperCAmelCase							=			intermediate_size
								__UpperCAmelCase							=			hidden_dropout_prob
								__UpperCAmelCase							=			attention_probs_dropout_prob
								__UpperCAmelCase							=			max_position_embeddings
								__UpperCAmelCase							=			type_vocab_size
								__UpperCAmelCase							=			initializer_range
								__UpperCAmelCase							=			layer_norm_eps
								__UpperCAmelCase							=			num_qa_labels
								__UpperCAmelCase							=			num_object_labels
								__UpperCAmelCase							=			num_attr_labels
								__UpperCAmelCase							=			l_layers
								__UpperCAmelCase							=			x_layers
								__UpperCAmelCase							=			r_layers
								__UpperCAmelCase							=			visual_feat_dim
								__UpperCAmelCase							=			visual_pos_dim
								__UpperCAmelCase							=			visual_loss_normalizer
								__UpperCAmelCase							=			task_matched
								__UpperCAmelCase							=			task_mask_lm
								__UpperCAmelCase							=			task_obj_predict
								__UpperCAmelCase							=			task_qa
								__UpperCAmelCase							=			visual_obj_loss
								__UpperCAmelCase							=			visual_attr_loss
								__UpperCAmelCase							=			visual_feat_loss
								__UpperCAmelCase							=			{'''vision''': r_layers, '''cross_encoder''': x_layers, '''language''': l_layers}
								super().__init__(**__a	)

'''simple docstring'''


from __future__ import annotations

import math





def       lowerCAmelCase					(		UpperCamelCase__				:   float    ,					UpperCamelCase__				:   int       ):


	"""simple docstring"""
	__UpperCAmelCase							=			u
	for i in range(1    ,					UpperCamelCase__       ):
		__UpperCAmelCase							=			temp * (u - i)
	return temp





def       lowerCAmelCase					(		):


	"""simple docstring"""
	__UpperCAmelCase							=			int(input('''enter the numbers of values: '''       )       )
	__UpperCAmelCase							=			[]
	for _ in range(UpperCamelCase__       ):
		y.append([]       )
	for i in range(UpperCamelCase__       ):
		for j in range(UpperCamelCase__       ):
			y[i].append(UpperCamelCase__       )
			__UpperCAmelCase							=			0

	print('''enter the values of parameters in a list: '''       )
	__UpperCAmelCase							=			list(map(UpperCamelCase__    ,					input().split()       )       )

	print('''enter the values of corresponding parameters: '''       )
	for i in range(UpperCamelCase__       ):
		__UpperCAmelCase							=			float(input()       )

	__UpperCAmelCase							=			int(input('''enter the value to interpolate: '''       )       )
	__UpperCAmelCase							=			(value - x[0]) / (x[1] - x[0])

	# for calculating forward difference table

	for i in range(1    ,					UpperCamelCase__       ):
		for j in range(n - i       ):
			__UpperCAmelCase							=			y[j + 1][i - 1] - y[j][i - 1]

	__UpperCAmelCase							=			y[0][0]
	for i in range(1    ,					UpperCamelCase__       ):
		summ += (ucal(UpperCamelCase__    ,					UpperCamelCase__       ) * y[0][i]) / math.factorial(UpperCamelCase__       )

	print(f"""the value at {value} is {summ}"""       )


if __name__ == "__main__":
					main()
