




from math import asin, atan, cos, radians, sin, sqrt, tan

_lowerCamelCase      :  List[str]      						=						6_3_7_8_1_3_7.0
_lowerCamelCase      :  int      						=						6_3_5_6_7_5_2.3_1_4_2_4_5
_lowerCamelCase      :  Union[str, Any]      						=						6_3_7_8_1_3_7




def 							_UpperCAmelCase  (UpperCamelCase_ : float      ,    UpperCamelCase_ : float      ,    UpperCamelCase_ : float      ,    UpperCamelCase_ : float       ):
				'''simple docstring'''
				_lowerCAmelCase    :    Tuple										=      (AXIS_A - AXIS_B) / AXIS_A
				_lowerCAmelCase    :    Optional[int]										=      atan((1 - flattening) * tan(radians(UpperCamelCase_       )       )       )
				_lowerCAmelCase    :    Union[str, Any]										=      atan((1 - flattening) * tan(radians(UpperCamelCase_       )       )       )
				_lowerCAmelCase    :    str										=      radians(UpperCamelCase_       )
				_lowerCAmelCase    :    List[str]										=      radians(UpperCamelCase_       )
				# Equation
				_lowerCAmelCase    :    List[Any]										=      sin((phi_a - phi_a) / 2       )
				_lowerCAmelCase    :    Optional[int]										=      sin((lambda_a - lambda_a) / 2       )
				# Square both values
				sin_sq_phi *= sin_sq_phi
				sin_sq_lambda *= sin_sq_lambda
				_lowerCAmelCase    :    str										=      sqrt(sin_sq_phi + (cos(UpperCamelCase_       ) * cos(UpperCamelCase_       ) * sin_sq_lambda)       )
				return 2 * RADIUS * asin(UpperCamelCase_       )


if __name__ == "__main__":
	import doctest

	doctest.testmod()







def 							_UpperCAmelCase  (UpperCamelCase_ : str       ):
				'''simple docstring'''
				_lowerCAmelCase    :    List[str]										=      [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__":
	_lowerCamelCase      :  List[str]      						=						input().strip()
	_lowerCamelCase      :  int      						=						"valid" if is_ip_va_address_valid(ip) else "invalid"
	print(F'''{ip} is a {valid_or_invalid} IP v4 address.''')

