
import copy
from dataclasses import dataclass
from pathlib import Path
from typing import Dict, Optional, Union






@dataclass
class UpperCAmelCase   :





   '''simple docstring'''
   __UpperCamelCase		:    Optional[Union[str, Path]] 				=    None
   __UpperCamelCase		:    bool 				=    False
   __UpperCamelCase		:    bool 				=    False
   __UpperCamelCase		:    bool 				=    False
   __UpperCamelCase		:    Optional[Dict] 				=    None
   __UpperCamelCase		:    Optional[str] 				=    None
   __UpperCamelCase		:    bool 				=    False
   __UpperCamelCase		:    bool 				=    False
   __UpperCamelCase		:    bool 				=    False
   __UpperCamelCase		:    bool 				=    True
   __UpperCamelCase		:    Optional[int] 				=    None
   __UpperCamelCase		:    int 				=    1
   __UpperCamelCase		:    Optional[Union[str, bool]] 				=    None
   __UpperCamelCase		:    bool 				=    False
   __UpperCamelCase		:    Optional[Dict] 				=    None
   __UpperCamelCase		:    Optional[str] 				=    None


   def  __magic_name__				(					self     :							Tuple     ):

      """simple docstring"""
      return self.__class__(**{k: copy.deepcopy(lowerCAmelCase_     ) for k, v in self.__dict__.items()}     )





def   lowerCamelCase__							(					a      )      ->   bool:
   _A:  Dict					=       [int(a      ) for i in ip_va_address.split('''.'''      ) if i.isdigit()]
   return len(a      ) == 4 and all(0 <= int(a      ) <= 2_54 for octet in octets      )


if __name__ == "__main__":
   UpperCAmelCase__		:     str     			=      input().strip()
   UpperCAmelCase__		:     Any     			=      'valid' if is_ip_va_address_valid(ip) else 'invalid'
   print(F"""{ip} is a {valid_or_invalid} IP v4 address.""")



