

"""simple docstring"""


import unittest
from dataclasses import dataclass
from typing import Optional

from transformers.utils import ModelOutput





@dataclass
class 					snake_case			(       __snake_case						):
				SCREAMING_SNAKE_CASE_     :   float
				SCREAMING_SNAKE_CASE_     :   Optional[float]        =						None
				SCREAMING_SNAKE_CASE_     :   Optional[float]        =						None





class 					snake_case			(       unittest.TestCase						):

				def 							lowercase_  (			self							:       int)->     Optional[Any]:



						'''simple docstring'''


						__lowerCAmelCase: Dict					   =    ModelOutputTest(a=3_0)
						self.assertEqual(x.a  ,						3_0)
						self.assertIsNone(x.b)
						self.assertIsNone(x.c)
						with self.assertRaises(UpperCamelCase__):
								__lowerCAmelCase: Dict					   =    x.d

				def 							lowercase_  (			self							:       Optional[int])->     List[Any]:



						'''simple docstring'''


						__lowerCAmelCase: Union[str, Any]					   =    ModelOutputTest(a=3_0  ,						b=1_0)
						self.assertEqual(x[0]  ,						3_0)
						self.assertEqual(x[1]  ,						1_0)
						self.assertEqual(x[:2]  ,						(3_0, 1_0))
						self.assertEqual(x[:]  ,						(3_0, 1_0))

						__lowerCAmelCase: Tuple					   =    ModelOutputTest(a=3_0  ,						c=1_0)
						self.assertEqual(x[0]  ,						3_0)
						self.assertEqual(x[1]  ,						1_0)
						self.assertEqual(x[:2]  ,						(3_0, 1_0))
						self.assertEqual(x[:]  ,						(3_0, 1_0))

				def 							lowercase_  (			self							:       Optional[Any])->     List[str]:



						'''simple docstring'''


						__lowerCAmelCase: Optional[int]					   =    ModelOutputTest(a=3_0  ,						b=1_0)
						self.assertEqual(x["a"]  ,						3_0)
						self.assertEqual(x["b"]  ,						1_0)
						with self.assertRaises(UpperCamelCase__):
								__lowerCAmelCase: str					   =    x["c"]

						__lowerCAmelCase: Union[str, Any]					   =    ModelOutputTest(a=3_0  ,						c=1_0)
						self.assertEqual(x["a"]  ,						3_0)
						self.assertEqual(x["c"]  ,						1_0)
						with self.assertRaises(UpperCamelCase__):
								__lowerCAmelCase: int					   =    x["b"]

				def 							lowercase_  (			self							:       int)->     List[str]:



						'''simple docstring'''


						__lowerCAmelCase: List[Any]					   =    ModelOutputTest(a=3_0)
						self.assertEqual(list(x.keys())  ,						["a"])
						self.assertEqual(list(x.values())  ,						[3_0])
						self.assertEqual(list(x.items())  ,						[("a", 3_0)])
						self.assertEqual(list(UpperCamelCase__)  ,						["a"])

						__lowerCAmelCase: List[Any]					   =    ModelOutputTest(a=3_0  ,						b=1_0)
						self.assertEqual(list(x.keys())  ,						["a", "b"])
						self.assertEqual(list(x.values())  ,						[3_0, 1_0])
						self.assertEqual(list(x.items())  ,						[("a", 3_0), ("b", 1_0)])
						self.assertEqual(list(UpperCamelCase__)  ,						["a", "b"])

						__lowerCAmelCase: Optional[Any]					   =    ModelOutputTest(a=3_0  ,						c=1_0)
						self.assertEqual(list(x.keys())  ,						["a", "c"])
						self.assertEqual(list(x.values())  ,						[3_0, 1_0])
						self.assertEqual(list(x.items())  ,						[("a", 3_0), ("c", 1_0)])
						self.assertEqual(list(UpperCamelCase__)  ,						["a", "c"])

						with self.assertRaises(UpperCamelCase__):
								__lowerCAmelCase: Dict					   =    x.update({"d": 2_0})
						with self.assertRaises(UpperCamelCase__):
								del x["a"]
						with self.assertRaises(UpperCamelCase__):
								__lowerCAmelCase: Optional[Any]					   =    x.pop("a")
						with self.assertRaises(UpperCamelCase__):
								__lowerCAmelCase: Any					   =    x.setdefault("d"  ,						3_2)

				def 							lowercase_  (			self							:       Optional[Any])->     str:



						'''simple docstring'''


						__lowerCAmelCase: str					   =    ModelOutputTest(a=3_0)
						__lowerCAmelCase: Dict					   =    1_0
						self.assertEqual(x.a  ,						1_0)
						self.assertEqual(x["a"]  ,						1_0)

				def 							lowercase_  (			self							:       Optional[int])->     str:



						'''simple docstring'''


						__lowerCAmelCase: Tuple					   =    ModelOutputTest(a=3_0)
						__lowerCAmelCase: List[Any]					   =    1_0
						self.assertEqual(x.a  ,						1_0)
						self.assertEqual(x["a"]  ,						1_0)

				def 							lowercase_  (			self							:       Optional[int])->     Optional[int]:



						'''simple docstring'''


						__lowerCAmelCase: List[Any]					   =    ModelOutputTest({"a": 3_0, "b": 1_0})
						self.assertEqual(list(x.keys())  ,						["a", "b"])
						self.assertEqual(x.a  ,						3_0)
						self.assertEqual(x.b  ,						1_0)




				def 							lowercase_  (			self							:       int)->     Optional[int]:



						'''simple docstring'''


						__lowerCAmelCase: Dict					   =    ModelOutputTest([("a", 3_0), ("b", 1_0)])
						self.assertEqual(list(x.keys())  ,						["a", "b"])
						self.assertEqual(x.a  ,						3_0)
						self.assertEqual(x.b  ,						1_0)

						with self.assertRaises(UpperCamelCase__):
								__lowerCAmelCase: List[Any]					   =    ModelOutputTest([("a", 3_0), (1_0, 1_0)])

						__lowerCAmelCase: Union[str, Any]					   =    ModelOutputTest(a=(3_0, 3_0))
						self.assertEqual(list(x.keys())  ,						["a"])
						self.assertEqual(x.a  ,						(3_0, 3_0))





"""simple docstring"""


def 					a__					(					__SCREAMING_SNAKE_CASE = 1_0_0_0				)			->			int:
		__lowerCAmelCase: int					   =    0
		__lowerCAmelCase: Optional[int]					   =    0
		while 1:
				num += 3
				if num >= n:
						break
				total += num
				num += 2
				if num >= n:
						break
				total += num
				num += 1
				if num >= n:
						break
				total += num
				num += 3
				if num >= n:
						break
				total += num
				num += 1
				if num >= n:
						break
				total += num
				num += 2
				if num >= n:
						break
				total += num
				num += 3
				if num >= n:
						break
				total += num
		return total


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


