
'''simple docstring'''

UpperCAmelCase__ :			Tuple											=		6_55_21







def 	A  (   UpperCamelCase_       :  str   )       ->							int:







			'''simple docstring'''



			lowerCAmelCase__										=				1
			lowerCAmelCase__										=				0
			for plain_chr in plain_text:
						lowerCAmelCase__										=				(a + ord(UpperCamelCase_   )) % MOD_ADLER
						lowerCAmelCase__										=				(b + a) % MOD_ADLER
			return (b << 16) | a







"""simple docstring"""

def      lowercase__    (       lowerCAmelCase					:       str			)			->   bool:






    """simple docstring"""




    UpperCAmelCase          =       [int(lowerCAmelCase			) for i in ip_va_address.split('.'			) if i.isdigit()]
    return len(lowerCAmelCase			) == 4 and all(0 <= int(lowerCAmelCase			) <= 254 for octet in octets			)


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



