




'''simple docstring'''







def 	_lowercase	(			lowercase_ = 1000						):



		'''simple docstring'''







		_snake_case			 = 0
		_snake_case			 = (n - 1) // 3
		total += ((terms) * (6 + (terms - 1) * 3)) // 2  # total of an A.P.
		_snake_case			 = (n - 1) // 5
		total += ((terms) * (10 + (terms - 1) * 5)) // 2
		_snake_case			 = (n - 1) // 15
		total -= ((terms) * (30 + (terms - 1) * 15)) // 2
		return total


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











'''simple docstring'''







from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_sentencepiece_available,
    is_tf_available,
    is_tokenizers_available,
    is_torch_available,
)


_lowerCamelCase							:		Any										=						{'configuration_pegasus': ['PEGASUS_PRETRAINED_CONFIG_ARCHIVE_MAP', 'PegasusConfig']}

try:
						if not is_sentencepiece_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						_lowerCamelCase							:		Optional[Any]										=						['PegasusTokenizer']

try:
						if not is_tokenizers_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						_lowerCamelCase							:		Optional[Any]										=						['PegasusTokenizerFast']

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						_lowerCamelCase							:		List[str]										=						[
						    'PEGASUS_PRETRAINED_MODEL_ARCHIVE_LIST',
						    'PegasusForCausalLM',
						    'PegasusForConditionalGeneration',
						    'PegasusModel',
						    'PegasusPreTrainedModel',
						]

try:
						if not is_tf_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						_lowerCamelCase							:		Union[str, Any]										=						[
						    'TFPegasusForConditionalGeneration',
						    'TFPegasusModel',
						    'TFPegasusPreTrainedModel',
						]

try:
						if not is_flax_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						_lowerCamelCase							:		List[Any]										=						[
						    'FlaxPegasusForConditionalGeneration',
						    'FlaxPegasusModel',
						    'FlaxPegasusPreTrainedModel',
						]


if TYPE_CHECKING:
						from .configuration_pegasus import PEGASUS_PRETRAINED_CONFIG_ARCHIVE_MAP, PegasusConfig

						try:
												if not is_sentencepiece_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .tokenization_pegasus import PegasusTokenizer

						try:
												if not is_tokenizers_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .tokenization_pegasus_fast import PegasusTokenizerFast

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_pegasus import (
												    PEGASUS_PRETRAINED_MODEL_ARCHIVE_LIST,
												    PegasusForCausalLM,
												    PegasusForConditionalGeneration,
												    PegasusModel,
												    PegasusPreTrainedModel,
												)

						try:
												if not is_tf_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_tf_pegasus import TFPegasusForConditionalGeneration, TFPegasusModel, TFPegasusPreTrainedModel

						try:
												if not is_flax_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_flax_pegasus import (
												    FlaxPegasusForConditionalGeneration,
												    FlaxPegasusModel,
												    FlaxPegasusPreTrainedModel,
												)

else:
						import sys

						_lowerCamelCase							:		List[Any]										=						_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)





