






'''simple docstring'''







from __future__ import annotations






class        a__     :
     '''simple docstring'''







     def __init__(self     :						Any					,					lowercase__     :						int       )	->							None:
           __A		 =   data
           __A		 =   None







class        a__     :
     '''simple docstring'''







     def __init__(self     :						Dict       )	->							Optional[Any]:
           __A		 =   None






     def      _UpperCamelCase (self     :						Optional[Any]					,					lowercase__     :						int       )	->							int:
           __A		 =   Node(lowercase__       )
           __A		 =   self.head
           __A		 =   new_node
           return self.head.data






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


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










'''simple docstring'''







import inspect
import os
import unittest

import torch

import accelerate
from accelerate import debug_launcher
from accelerate.test_utils import (
    execute_subprocess_async,
    require_cpu,
    require_multi_gpu,
    require_single_gpu,
    test_sync,
)
from accelerate.utils import patch_environment






class        a__     (      unittest.TestCase    ):
     '''simple docstring'''







     def      _UpperCamelCase (self     :						int       )	->							Optional[int]:
           __A		 =   inspect.getfile(accelerate.test_utils       )
           __A		 =   os.path.sep.join(mod_file.split(os.path.sep       )[:-1] + ["scripts", "test_sync.py"]       )






     @require_cpu
     def      _UpperCamelCase (self     :						str       )	->							Optional[Any]:
           debug_launcher(test_sync.main					,					num_processes=1       )






     @require_cpu
     def      _UpperCamelCase (self     :						Union[str, Any]       )	->							Optional[Any]:
           debug_launcher(test_sync.main       )






     @require_single_gpu
     def      _UpperCamelCase (self     :						Union[str, Any]       )	->							List[str]:
           test_sync.main()






     @require_multi_gpu
     def      _UpperCamelCase (self     :						Optional[int]       )	->							List[str]:
           print(f"Found {torch.cuda.device_count()} devices."       )
           __A		 =   ["torchrun", f"--nproc_per_node={torch.cuda.device_count()}", self.test_file_path]
           with patch_environment(omp_num_threads=1       ):
                 execute_subprocess_async(lowercase__					,					env=os.environ.copy()       )


