




"""simple docstring"""
from datetime import date

import requests

SCREAMING_SNAKE_CASE_			      =					'''https://api.carbonintensity.org.uk/intensity'''

def 				lowercase      ():
						__lowerCAmelCase        =       requests.get(_lowerCAmelCase		).json()['data'][0]
						return last_half_hour["intensity"]["actual"]

def 				lowercase      (_lowerCAmelCase				,  _lowerCAmelCase		):
						return requests.get(f"""{BASE_URL}/{start}/{end}"""		).json()["data"]


if __name__ == "__main__":
			for entry in fetch_from_to(start=date(2_020, 10, 1), end=date(2_020, 10, 3)):
						print('''from {from} to {to}: {intensity[actual]}'''.format(**entry))
			print(F"{fetch_last_half_hour() = }")


"""simple docstring"""
from __future__ import annotations
class      lowerCAmelCase_						:



							'''simple docstring'''





							def __init__(				self  ,							snake_case_							)   ->       None:
													__lowerCAmelCase        =       data
													__lowerCAmelCase        =       None
class      lowerCAmelCase_						:



							'''simple docstring'''





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




							def  A__		(				self  ,							snake_case_							)   ->       int:
													__lowerCAmelCase        =       Node(snake_case_							)
													__lowerCAmelCase        =       self.head
													__lowerCAmelCase        =       new_node
													return self.head.data




							def  A__		(				self							)   ->       int | None:
													__lowerCAmelCase        =       self.head
													__lowerCAmelCase        =       self.head
													if self.head:
																			while fast_pointer and fast_pointer.next:
																									__lowerCAmelCase        =       fast_pointer.next.next
																									__lowerCAmelCase        =       slow_pointer.next
																			return slow_pointer.data
													else:
																			print("""No element found."""							)
																			return None


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