




def    snake_case(							__magic_name__       )					->				bool:





     '''simple docstring'''


     lowercase   :  List[str]        =					[int(_UpperCAmelCase       ) for i in ip_va_address.split('''.'''       ) if i.isdigit()]
     return len(_UpperCAmelCase       ) == 4 and all(0 <= int(_UpperCAmelCase       ) <= 2_54 for octet in octets       )


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

def 		UpperCamelCase     (       _UpperCAmelCase  :   str  )   ->			bool:






						'''simple docstring'''

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




