

'''simple docstring'''
def  a__       (    _SCREAMING_SNAKE_CASE   :       str	,				_SCREAMING_SNAKE_CASE   :       bool = False				)     ->					str:


	"""simple docstring"""





	if not isinstance(_SCREAMING_SNAKE_CASE	,				_SCREAMING_SNAKE_CASE				):
		UpperCAmelCase_     :      str						=  F'''Expected string as input, found {type(_SCREAMING_SNAKE_CASE				)}'''
		raise ValueError(_SCREAMING_SNAKE_CASE				)
	if not isinstance(_SCREAMING_SNAKE_CASE	,				_SCREAMING_SNAKE_CASE				):
		UpperCAmelCase_     :      Optional[Any]						=  F'''Expected boolean as use_pascal parameter, found {type(_SCREAMING_SNAKE_CASE				)}'''
		raise ValueError(_SCREAMING_SNAKE_CASE				)

	UpperCAmelCase_     :      Tuple						=  input_str.split("_"				)

	UpperCAmelCase_     :      Optional[int]						=  0 if use_pascal else 1

	UpperCAmelCase_     :      Dict						=  words[start_index:]

	UpperCAmelCase_     :      List[Any]						=  [word[0].upper() + word[1:] for word in words_to_capitalize]

	UpperCAmelCase_     :      Tuple						=  "" if use_pascal else words[0]

	return "".join([initial_word, *capitalized_words]				)


if __name__ == "__main__":
					from doctest import testmod

					testmod()








'''simple docstring'''

def _SCREAMING_SNAKE_CASE (A			)			->			bool:






       """simple docstring"""







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


if __name__ == "__main__":
 lowerCamelCase				:  Optional[Any]    		=      input().strip()
 lowerCamelCase				:  Union[str, Any]    		=      'valid' if is_ip_va_address_valid(ip) else 'invalid'
 print(f"""{ip} is a {valid_or_invalid} IP v4 address.""")




