
"""simple docstring"""



import re






def 	__snake_case  (    SCREAMING_SNAKE_CASE:					str						):






							"""simple docstring"""



							return [char.split() for char in re.split(R'[^ a-z A-Z 0-9 \s]'     ,  str_						)]






def 	__snake_case  (    SCREAMING_SNAKE_CASE:					str						):






							"""simple docstring"""



							_lowerCAmelCase  	=			split_input(str_						)
							return "".join(
							    [''.join([char.capitalize() for char in sub_str]						) for sub_str in string_split]						)






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






							"""simple docstring"""



							try:
														_lowerCAmelCase  	=			split_input(SCREAMING_SNAKE_CASE						)
														if upper:
																					_lowerCAmelCase  	=			''.join(
																					    [
																					        separator.join([char.upper() for char in sub_str]						)
																					        for sub_str in string_split
																					    ]						)
														else:
																					_lowerCAmelCase  	=			''.join(
																					    [
																					        separator.join([char.lower() for char in sub_str]						)
																					        for sub_str in string_split
																					    ]						)
														return res_str
							except IndexError:
														return "not valid string"






def 	__snake_case  (    SCREAMING_SNAKE_CASE:					str						):






							"""simple docstring"""



							return to_simple_case(SCREAMING_SNAKE_CASE						)






def 	__snake_case  (    SCREAMING_SNAKE_CASE:					str						):






							"""simple docstring"""



							try:
														_lowerCAmelCase  	=			to_simple_case(SCREAMING_SNAKE_CASE						)
														return res_str[0].lower() + res_str[1:]
							except IndexError:
														return "not valid string"






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






							"""simple docstring"""



							return to_complex_case(SCREAMING_SNAKE_CASE     ,  SCREAMING_SNAKE_CASE     ,  '_'						)






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






							"""simple docstring"""



							return to_complex_case(SCREAMING_SNAKE_CASE     ,  SCREAMING_SNAKE_CASE     ,  '-'						)


if __name__ == "__main__":
	__import__('''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.')






