




'''simple docstring'''







from __future__ import annotations







class 				_a   :





     '''simple docstring'''



     def __init__(							self       ,__a       )			->							None:
          snake_case :			str					   = data
          snake_case :			str					   = None







class 				_a   :





     '''simple docstring'''



     def __init__(							self       )			->							Optional[int]:
          snake_case :			Optional[Any]					   = None







     def  snake_case_			(							self       ,__a       )			->							int:
          snake_case :			Union[str, Any]					   = Node(__a       )
          snake_case :			Dict					   = self.head
          snake_case :			Tuple					   = new_node
          return self.head.data







     def  snake_case_			(							self       )			->							int | None:
          snake_case :			Any					   = self.head
          snake_case :			int					   = self.head
          if self.head:
               while fast_pointer and fast_pointer.next:
                    snake_case :			int					   = fast_pointer.next.next
                    snake_case :			List[Any]					   = slow_pointer.next
               return slow_pointer.data
          else:
               print("""No element found."""       )
               return None


if __name__ == "__main__":
      lowercase			:      int			=					LinkedList()
      for _ in range(int(input().strip())):
            lowercase			:      Any			=					int(input().strip())
            link.push(data)
      print(link.middle_element())









'''simple docstring'''







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


lowercase			:      Any			=					{"""configuration_visual_bert""": ["""VISUAL_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP""", """VisualBertConfig"""]}

try:
      if not is_torch_available():
            raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
      pass
else:
      lowercase			:      Optional[int]			=					[
          """VISUAL_BERT_PRETRAINED_MODEL_ARCHIVE_LIST""",
          """VisualBertForMultipleChoice""",
          """VisualBertForPreTraining""",
          """VisualBertForQuestionAnswering""",
          """VisualBertForRegionToPhraseAlignment""",
          """VisualBertForVisualReasoning""",
          """VisualBertLayer""",
          """VisualBertModel""",
          """VisualBertPreTrainedModel""",
      ]


if TYPE_CHECKING:
      from .configuration_visual_bert import VISUAL_BERT_PRETRAINED_CONFIG_ARCHIVE_MAP, VisualBertConfig

      try:
            if not is_torch_available():
                  raise OptionalDependencyNotAvailable()
      except OptionalDependencyNotAvailable:
            pass
      else:
            from .modeling_visual_bert import (
                VISUAL_BERT_PRETRAINED_MODEL_ARCHIVE_LIST,
                VisualBertForMultipleChoice,
                VisualBertForPreTraining,
                VisualBertForQuestionAnswering,
                VisualBertForRegionToPhraseAlignment,
                VisualBertForVisualReasoning,
                VisualBertLayer,
                VisualBertModel,
                VisualBertPreTrainedModel,
            )


else:
      import sys

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



