



"""simple docstring"""







def 				UpperCamelCase_    (    lowerCAmelCase__      :				List[str]						)						->   Tuple:

  """simple docstring"""




  lowerCAmelCase_   :				str								= [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__":
     lowercase__		:				Optional[int]          =	input().strip()
     lowercase__		:				Any          =	"""valid""" if is_ip_va_address_valid(ip) else """invalid"""
     print(f'{ip} is a {valid_or_invalid} IP v4 address.')











from functools import lru_cache





@lru_cache
def __UpperCamelCase			(       _A  ):
						if num < 0:
												raise ValueError('''Number should not be negative.'''  )

						return 1 if num in (0, 1) else num * factorial(num - 1  )


if __name__ == "__main__":
						import doctest

						doctest.testmod()




