


"""simple docstring"""

def lowerCAmelCase_   (					UpperCamelCase__						:			str			):






 """simple docstring"""







 __lowercase						=						[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__":
       UpperCAmelCase__					=input().strip()
       UpperCAmelCase__					="valid" if is_ip_va_address_valid(ip) else "invalid"
       print(f"""{ip} is a {valid_or_invalid} IP v4 address.""")




"""simple docstring"""

def lowerCAmelCase_   (					UpperCamelCase__						:			list					, UpperCamelCase__						:			int					, UpperCamelCase__						:			int = 0					, UpperCamelCase__						:			int = 0			):






 """simple docstring"""







 __lowercase						=						right or len(UpperCamelCase__			) - 1
 if left > right:
  return -1
 elif list_data[left] == key:
  return left
 elif list_data[right] == key:
  return right
 else:
  return search(UpperCamelCase__					, UpperCamelCase__					, left + 1					, right - 1			)


if __name__ == "__main__":
       import doctest

       doctest.testmod()
