

"""simple docstring"""


from __future__ import annotations

from collections.abc import Iterable, Iterator
from dataclasses import dataclass

__A						       =      (3, 9, -11, 0, 7, 5, 1, -1)
__A						       =      (4, 6, 2, 0, 8, 10, 3, -2)





@dataclass
class    snake_case     :
				SCREAMING_SNAKE_CASE_       :				int
				SCREAMING_SNAKE_CASE_       :				Node | None





class    snake_case     :

				def __init__(     self							:    Optional[Any]					,  UpperCamelCase__							:    Iterable[int])->       None:



						'''simple docstring'''


						__lowerCAmelCase:	Node | None   				=      None
						for i in sorted(UpperCamelCase__					,  reverse=UpperCamelCase__):
								__lowerCAmelCase:	Tuple   				=      Node(UpperCamelCase__					,  self.head)

				def __iter__(     self							:    Optional[int])->       Iterator[int]:



						'''simple docstring'''


						__lowerCAmelCase:	List[Any]   				=      self.head
						while node:
								yield node.data
								__lowerCAmelCase:	Tuple   				=      node.next_node

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



						'''simple docstring'''


						return sum(1 for _ in self)




				def __str__(     self							:    List[str])->       str:



						'''simple docstring'''


						return " -> ".join([str(UpperCamelCase__) for node in self])






def    a__   (   __SCREAMING_SNAKE_CASE ,			__SCREAMING_SNAKE_CASE			)     ->     SortedLinkedList:
		return SortedLinkedList(list(__SCREAMING_SNAKE_CASE			) + list(__SCREAMING_SNAKE_CASE			)			)


if __name__ == "__main__":
			import doctest

			doctest.testmod()
			__A						       =      SortedLinkedList
			print(merge_lists(SSL(test_data_odd), SSL(test_data_even)))





"""simple docstring"""


def    a__   (   __SCREAMING_SNAKE_CASE ,			__SCREAMING_SNAKE_CASE			)     ->     int:
		return int((input_a, input_a).count(0			) == 0			)






def    a__   (   )     ->     None:
		assert and_gate(0 ,			0			) == 0
		assert and_gate(0 ,			1			) == 0
		assert and_gate(1 ,			0			) == 0
		assert and_gate(1 ,			1			) == 1


if __name__ == "__main__":
			test_and_gate()
			print(and_gate(1, 0))
			print(and_gate(0, 0))
			print(and_gate(0, 1))
			print(and_gate(1, 1))


