




from __future__ import annotations




def 							_UpperCAmelCase  (UpperCamelCase_ : str      ,    UpperCamelCase_ : Dict = None      ,    UpperCamelCase_ : str = None       ):





				if start is None:
								_lowerCAmelCase    :    Dict										=      0

				if end is None:
								_lowerCAmelCase    :    Optional[int]										=      len(UpperCamelCase__       ) - 1

				if start >= end:
								return

				_lowerCAmelCase    :    int										=      (start + end) // 2

				slowsort(UpperCamelCase__      ,    UpperCamelCase__      ,    UpperCamelCase__       )
				slowsort(UpperCamelCase__      ,    mid + 1      ,    UpperCamelCase__       )

				if sequence[end] < sequence[mid]:
								_lowerCAmelCase					,    _lowerCAmelCase    :    Dict										=      sequence[mid], sequence[end]

				slowsort(UpperCamelCase__      ,    UpperCamelCase__      ,    end - 1       )


if __name__ == "__main__":
	from doctest import testmod

	testmod()







def 							_UpperCAmelCase  (UpperCamelCase_ : str       ):
				'''simple docstring'''
				_lowerCAmelCase    :    List[str]										=      [int(UpperCamelCase_       ) for i in ip_va_address.split("""."""       ) if i.isdigit()]
				return len(UpperCamelCase_       ) == 4 and all(0 <= int(UpperCamelCase_       ) <= 254 for octet in octets       )


if __name__ == "__main__":
	_lowerCamelCase      :  List[str]      						=						input().strip()
	_lowerCamelCase      :  int      						=						"valid" if is_ip_va_address_valid(ip) else "invalid"
	print(F'''{ip} is a {valid_or_invalid} IP v4 address.''')

