



def    _lowerCAmelCase    (_lowerCAmelCase):
					UpperCamelCase_		  =   (1 + 24 * n) ** 0.5
					return ((1 + root) / 6) % 1 == 0



def    _lowerCAmelCase    (_lowerCAmelCase = 50_00):
					UpperCamelCase_		  =   [(i * (3 * i - 1)) // 2 for i in range(1   ,	_lowerCAmelCase)]
					for i, pentagonal_i in enumerate(_lowerCAmelCase):
										for j in range(_lowerCAmelCase   ,	len(_lowerCAmelCase)):
															UpperCamelCase_		  =   pentagonal_nums[j]
															UpperCamelCase_		  =   pentagonal_i + pentagonal_j
															UpperCamelCase_		  =   pentagonal_j - pentagonal_i
															if is_pentagonal(_lowerCAmelCase) and is_pentagonal(_lowerCAmelCase):
																				return b

					return -1


if __name__ == "__main__":
	print(F"{solution() = }")





# Copyright 2023 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from ..models.auto import AutoModelForSeqaSeqLM, AutoTokenizer
from .base import PipelineTool


class       _lowercase   (a_      ):
				'''simple docstring'''







				lowercase__   						=						"""philschmid/bart-large-cnn-samsum"""
				lowercase__   						=						(
				    """This is a tool that summarizes an English text. It takes an input `text` containing the text to summarize, """
				    """and returns a summary of the text."""
				)
				lowercase__   						=						"""summarizer"""
				lowercase__   						=						AutoTokenizer
				lowercase__   						=						AutoModelForSeqaSeqLM

				lowercase__   						=						["""text"""]
				lowercase__   						=						["""text"""]

				def       _lowerCamelCase					( self     , snake_case__    ):

									'''simple docstring'''


									return self.pre_processor(snake_case__     , return_tensors="pt"     , truncation=snake_case__    )

				def       _lowerCamelCase					( self     , snake_case__    ):

									'''simple docstring'''


									return self.model.generate(**snake_case__    )[0]

				def       _lowerCamelCase					( self     , snake_case__    ):

									'''simple docstring'''


									return self.pre_processor.decode(snake_case__     , skip_special_tokens=snake_case__     , clean_up_tokenization_spaces=snake_case__    )
