


from __future__ import annotations







class   lowerCAmelCase__ :




     '''simple docstring'''


     def __init__(		self				,		__lowerCamelCase)    ->       None:
            _A   : str       					=				data
            _A   : List[Any]       					=				None







class   lowerCAmelCase__ :




     '''simple docstring'''


     def __init__(		self)    ->       List[str]:
            _A   : str       					=				None


     def 				_lowerCamelCase				(		self				,		__lowerCamelCase)    ->       int:
            _A   : List[Any]       					=				Node(__lowerCamelCase)
            _A   : str       					=				self.head
            _A   : Tuple       					=				new_node
            return self.head.data


     def 				_lowerCamelCase				(		self)    ->       int | None:
            _A   : Tuple       					=				self.head
            _A   : Tuple       					=				self.head
            if self.head:
                   while fast_pointer and fast_pointer.next:
                          _A   : str       					=				fast_pointer.next.next
                          _A   : Union[str, Any]       					=				slow_pointer.next
                   return slow_pointer.data
            else:
                   print("No element found.")
                   return None


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




from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


lowerCAmelCase__   	=				{
    'configuration_deta': ['DETA_PRETRAINED_CONFIG_ARCHIVE_MAP', 'DetaConfig'],
}

try:
    if not is_vision_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    lowerCAmelCase__   	=				['DetaImageProcessor']

try:
    if not is_torch_available():
        raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
    pass
else:
    lowerCAmelCase__   	=				[
        'DETA_PRETRAINED_MODEL_ARCHIVE_LIST',
        'DetaForObjectDetection',
        'DetaModel',
        'DetaPreTrainedModel',
    ]


if TYPE_CHECKING:
    from .configuration_deta import DETA_PRETRAINED_CONFIG_ARCHIVE_MAP, DetaConfig

    try:
        if not is_vision_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .image_processing_deta import DetaImageProcessor

    try:
        if not is_torch_available():
            raise OptionalDependencyNotAvailable()
    except OptionalDependencyNotAvailable:
        pass
    else:
        from .modeling_deta import (
            DETA_PRETRAINED_MODEL_ARCHIVE_LIST,
            DetaForObjectDetection,
            DetaModel,
            DetaPreTrainedModel,
        )

else:
    import sys

    lowerCAmelCase__   	=				_LazyModule(__name__, globals()['__file__'], _import_structure, module_spec=__spec__)
