



"""simple docstring"""
def    A_  (			_lowercase	):







						'''simple docstring'''


						snake_case_ :Tuple						=			[int(_lowercase	) for i in ip_va_address.split("""."""	) if i.isdigit()]
						return len(_lowercase	) == 4 and all(0 <= int(_lowercase	) <= 254 for octet in octets	)


if __name__ == "__main__":
						__a      =				input().strip()
						__a      =				"valid" if is_ip_va_address_valid(ip) else "invalid"
						print(F"""{ip} is a {valid_or_invalid} IP v4 address.""")





'''simple docstring'''






from __future__ import annotations


def  snake_case_     (					_lowerCAmelCase  :						list[int | float]   ,      _lowerCAmelCase  :						int   ,      _lowerCAmelCase  :						int  )      ->   int | float:
							if len(_lowerCAmelCase  ) == 0:
														raise ValueError('''find_max() arg is an empty sequence'''  )
							if (
							    left >= len(_lowerCAmelCase  )
							    or left < -len(_lowerCAmelCase  )
							    or right >= len(_lowerCAmelCase  )
							    or right < -len(_lowerCAmelCase  )
							):
														raise IndexError('''list index out of range'''  )
							if left == right:
														return nums[left]
							UpperCAmelCase :       List[Any] 							=		(left + right) >> 1  # the middle
							UpperCAmelCase :       Optional[Any] 							=		find_max(_lowerCAmelCase   ,      _lowerCAmelCase   ,      _lowerCAmelCase  )  # find max in range[left, mid]
							UpperCAmelCase :       Dict 							=		find_max(_lowerCAmelCase   ,      mid + 1   ,      _lowerCAmelCase  )  # find max in range[mid + 1, right]

							return left_max if left_max >= right_max else right_max


if __name__ == "__main__":
						import doctest

						doctest.testmod(verbose=True)





