
"""simple docstring"""



def 	__snake_case  (    SCREAMING_SNAKE_CASE:					str     ,  SCREAMING_SNAKE_CASE:					str						):






							"""simple docstring"""



							_lowerCAmelCase  	=			len(SCREAMING_SNAKE_CASE						)
							_lowerCAmelCase  	=			len(SCREAMING_SNAKE_CASE						)
							_lowerCAmelCase  	=			[[False for _ in range(m + 1						)] for _ in range(n + 1						)]
							_lowerCAmelCase  	=			True
							for i in range(SCREAMING_SNAKE_CASE						):
														for j in range(m + 1						):
																					if dp[i][j]:
																												if j < m and a[i].upper() == b[j]:
																																			_lowerCAmelCase  	=			True
																												if a[i].islower():
																																			_lowerCAmelCase  	=			True
							return dp[n][m]


if __name__ == "__main__":
	import doctest

	doctest.testmod()








"""simple docstring"""



def 	__snake_case  (    SCREAMING_SNAKE_CASE:					str						):






							"""simple docstring"""



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


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






