

'''simple docstring'''
import unittest

from transformers import BlenderbotTokenizer, BlenderbotTokenizerFast
from transformers.utils import cached_property
class  _snake_case						(unittest.TestCase):






			@cached_property
			def 						UpperCamelCase__				(   self			):
				return BlenderbotTokenizer.from_pretrained("facebook/blenderbot-3B"			)






			@cached_property
			def 						UpperCamelCase__				(   self			):
				return BlenderbotTokenizerFast.from_pretrained("facebook/blenderbot-3B"			)






			def 						UpperCamelCase__				(   self			):
				UpperCAmelCase_			:	Optional[int]      =   self.tokenizer_ab
				UpperCAmelCase_			:	str      =   ' I am a small frog.'
				UpperCAmelCase_			:	int      =   tok([src_text]       ,padding=lowerCamelCase_       ,truncation=lowerCamelCase_			)['input_ids']
				UpperCAmelCase_			:	Dict      =   tok.batch_decode(lowerCamelCase_       ,skip_special_tokens=lowerCamelCase_       ,clean_up_tokenization_spaces=lowerCamelCase_			)[0]
				assert src_text == decoded






			def 						UpperCamelCase__				(   self			):
				UpperCAmelCase_			:	Union[str, Any]      =   self.rust_tokenizer_ab
				UpperCAmelCase_			:	Tuple      =   ' I am a small frog.'
				UpperCAmelCase_			:	Union[str, Any]      =   tok([src_text]       ,padding=lowerCamelCase_       ,truncation=lowerCamelCase_			)['input_ids']
				UpperCAmelCase_			:	int      =   tok.batch_decode(lowerCamelCase_       ,skip_special_tokens=lowerCamelCase_       ,clean_up_tokenization_spaces=lowerCamelCase_			)[0]
				assert src_text == decoded






			def 						UpperCamelCase__				(   self			):
				assert self.tokenizer_ab.add_prefix_space
				assert self.tokenizer_ab([" Sam", "Sam"]			).input_ids == [[55_02, 2], [55_02, 2]]






			def 						UpperCamelCase__				(   self			):
				assert self.rust_tokenizer_ab.add_prefix_space
				assert self.rust_tokenizer_ab([" Sam", "Sam"]			).input_ids == [[55_02, 2], [55_02, 2]]












"""simple docstring"""
import os






def        lowerCamelCase_  (						):
 lowerCamelCase__     :			List[Any]     				=						os.path.dirname(os.path.realpath(_lowerCamelCase				)				)
 lowerCamelCase__     :			Any     				=						os.path.join(_lowerCamelCase			,   'triangle.txt'				)

 with open(_lowerCamelCase				) as in_file:
  lowerCamelCase__     :			Dict     				=						[[int(_lowerCamelCase				) for i in line.split()] for line in in_file]

 while len(_lowerCamelCase				) != 1:
  lowerCamelCase__     :			Dict     				=						triangle.pop()
  lowerCamelCase__     :			Optional[Any]     				=						triangle[-1]
  for j in range(len(_lowerCamelCase				) - 1				):
   curr_row[j] += max(last_row[j]			,   last_row[j + 1]				)
 return triangle[0][0]


if __name__ == "__main__":
      print(solution())

