






def    UpperCamelCase						(	_A			):






						"""simple docstring"""







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


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














def    UpperCamelCase						(	_A = 1,   _A = 1000			):






						"""simple docstring"""







						__magic_name__      :       Optional[int]       						= 1
						__magic_name__      :       Dict       						= 0

						for divide_by_number in range(_A,   digit + 1			):
												__magic_name__      :       list[int]       						= []
												__magic_name__      :       Any       						= numerator
												for _ in range(1,   digit + 1			):
																		if now_divide in has_been_divided:
																								if longest_list_length < len(_A			):
																														__magic_name__      :       int       						= len(_A			)
																														__magic_name__      :       Dict       						= divide_by_number
																		else:
																								has_been_divided.append(_A			)
																								__magic_name__      :       Optional[int]       						= now_divide * 10 % divide_by_number

						return the_digit


# Tests
if __name__ == "__main__":
		import doctest

		doctest.testmod()
