




'''simple docstring'''





def       __a      (  _UpperCamelCase:       str       )		->					bool:

     """simple docstring"""




     _snake_case				= [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_		:     Optional[Any]          =		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.')








'''simple docstring'''





from typing import Optional
from urllib.parse import quote

import huggingface_hub as hfh
from packaging import version





def       __a      (  _UpperCamelCase:       str   ,		_UpperCamelCase:       str   ,		_UpperCamelCase:       Optional[str] = None       )		->					str:

     """simple docstring"""




     if version.parse(hfh.__version__       ).release < version.parse("0.11.0"       ).release:
          # old versions of hfh don't url-encode the file path
          _snake_case				= quote(_UpperCamelCase       )
     return hfh.hf_hub_url(_UpperCamelCase   ,		_UpperCamelCase   ,		repo_type="dataset"   ,		revision=_UpperCamelCase       )


