
def 		UpperCamelCase     (       _UpperCAmelCase  :   str ,			_UpperCAmelCase  :   bool = False  )   ->			str:






						'''simple docstring'''

						if not isinstance(_UpperCAmelCase ,			_UpperCAmelCase  ):
												_lowercase       :	List[str]           =   f"""Expected string as input, found {type(_UpperCAmelCase  )}"""
												raise ValueError(_UpperCAmelCase  )
						if not isinstance(_UpperCAmelCase ,			_UpperCAmelCase  ):
												_lowercase       :	Union[str, Any]           =   f"""Expected boolean as use_pascal parameter, found {type(_UpperCAmelCase  )}"""
												raise ValueError(_UpperCAmelCase  )

						_lowercase       :	Dict           =   input_str.split("_"  )

						_lowercase       :	List[Any]           =   0 if use_pascal else 1

						_lowercase       :	str           =   words[start_index:]

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

						_lowercase       :	List[str]           =   "" if use_pascal else words[0]

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


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

							testmod()






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.''')




