
"""simple docstring"""

def      lowercase__    (       lowerCAmelCase					:       str			,					lowerCAmelCase					:       bool = False			)			->   str:






    """simple docstring"""




    if not isinstance(lowerCAmelCase			,					lowerCAmelCase			):
        UpperCAmelCase          =       F"Expected string as input, found {type(lowerCAmelCase			)}"
        raise ValueError(lowerCAmelCase			)
    if not isinstance(lowerCAmelCase			,					lowerCAmelCase			):
        UpperCAmelCase          =       F"Expected boolean as use_pascal parameter, found {type(lowerCAmelCase			)}"
        raise ValueError(lowerCAmelCase			)

    UpperCAmelCase          =       input_str.split('_'			)

    UpperCAmelCase          =       0 if use_pascal else 1

    UpperCAmelCase          =       words[start_index:]

    UpperCAmelCase          =       [word[0].upper() + word[1:] for word in words_to_capitalize]

    UpperCAmelCase          =       '' if use_pascal else words[0]

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


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

   testmod()





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



