
"""simple docstring"""

from math import loga




def      lowercase__    (       lowerCAmelCase					:       int			)			->   int:






    """simple docstring"""




    if a < 0:
        raise ValueError('Input value must be a positive integer'			)
    elif isinstance(lowerCAmelCase			,					lowerCAmelCase			):
        raise TypeError('Input value must be a \'int\' type'			)
    return 0 if (a == 0) else int(loga(a & -a			)			)


if __name__ == "__main__":
   import doctest

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



