






def 							A     (       a_					)     ->						bool:
					__UpperCamelCase      :					List[str]       		=[int(a_					) for i in ip_va_address.split('.'					) if i.isdigit()]
					return len(a_					) == 4 and all(0 <= int(a_					) <= 254 for octet in octets					)


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







def      A      (      _SCREAMING_SNAKE_CASE = 100_0000    )	-> int:
       lowerCamelCase   :      Tuple			 =					1
       lowerCamelCase   :      int			 =					1
       lowerCamelCase   :      Optional[Any]			 =					{1: 1}

       for inputa in range(2 ,_SCREAMING_SNAKE_CASE    ):
              lowerCamelCase   :      Union[str, Any]			 =					0
              lowerCamelCase   :      List[str]			 =					inputa

              while True:
                     if number in counters:
                            counter += counters[number]
                            break
                     if number % 2 == 0:
                            number //= 2
                            counter += 1
                     else:
                            lowerCamelCase   :      str			 =					(3 * number) + 1
                            counter += 1

              if inputa not in counters:
                     lowerCamelCase   :      str			 =					counter

              if counter > pre_counter:
                     lowerCamelCase   :      str			 =					inputa
                     lowerCamelCase   :      Any			 =					counter
       return largest_number


if __name__ == "__main__":
       print(solution(int(input().strip())))






