



'''simple docstring'''
from ...configuration_utils import PretrainedConfig
from ...utils import logging


snake_case_					:      List[Any]    			=    logging.get_logger(__name__)

snake_case_					:      Optional[int]    			=    {
    'facebook/timesformer': 'https://huggingface.co/facebook/timesformer/resolve/main/config.json',
}






class 				lowercase__      (				lowercase  ):
	lowercase__    							=     """timesformer"""





	def __init__(					self   :							Optional[Any]					,lowerCamelCase__   :							List[str]=224					,lowerCamelCase__   :							Tuple=16					,lowerCamelCase__   :							Optional[int]=3					,lowerCamelCase__   :							Optional[int]=8					,lowerCamelCase__   :							str=768					,lowerCamelCase__   :							Dict=12					,lowerCamelCase__   :							Dict=12					,lowerCamelCase__   :							Optional[Any]=3072					,lowerCamelCase__   :							Union[str, Any]="gelu"					,lowerCamelCase__   :							Optional[int]=0.0					,lowerCamelCase__   :							Tuple=0.0					,lowerCamelCase__   :							List[Any]=0.0_2					,lowerCamelCase__   :							List[Any]=1E-6					,lowerCamelCase__   :							Tuple=True					,lowerCamelCase__   :							Optional[Any]="divided_space_time"					,lowerCamelCase__   :							int=0					,**lowerCamelCase__   :							str					,):







							'''simple docstring'''
							super().__init__(**lowerCamelCase__					)

							_UpperCamelCase   :						Tuple												=  image_size
							_UpperCamelCase   :						Union[str, Any]												=  patch_size
							_UpperCamelCase   :						Optional[Any]												=  num_channels
							_UpperCamelCase   :						int												=  num_frames

							_UpperCamelCase   :						Tuple												=  hidden_size
							_UpperCamelCase   :						Dict												=  num_hidden_layers
							_UpperCamelCase   :						int												=  num_attention_heads
							_UpperCamelCase   :						str												=  intermediate_size
							_UpperCamelCase   :						List[Any]												=  hidden_act
							_UpperCamelCase   :						Optional[int]												=  hidden_dropout_prob
							_UpperCamelCase   :						Any												=  attention_probs_dropout_prob
							_UpperCamelCase   :						str												=  initializer_range
							_UpperCamelCase   :						Optional[int]												=  layer_norm_eps
							_UpperCamelCase   :						Tuple												=  qkv_bias

							_UpperCamelCase   :						Any												=  attention_type
							_UpperCamelCase   :						int												=  drop_path_rate







'''simple docstring'''
from math import ceil






def A__       (	UpperCAmelCase_ = 1_0_0_1				):
						_UpperCamelCase   :						int												=  1

						for i in range(1    ,    int(ceil(n / 2.0				)				)				):
												_UpperCamelCase   :						Dict												=  2 * i + 1
												_UpperCamelCase   :						Tuple												=  2 * i
												_UpperCamelCase   :						Any												=  total + 4 * odd**2 - 6 * even

						return total


if __name__ == "__main__":
					import sys

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


