


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


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






from __future__ import annotations

from numpy import array, cos, cross, floataa, radians, sin
from numpy.typing import NDArray




def        snake_case_					(  snake_case      ,							snake_case      ,							snake_case = False					)  ->    list[float]:
       if radian_mode:
              return [magnitude * cos(snake_case					), magnitude * sin(snake_case					)]
       return [magnitude * cos(radians(snake_case					)					), magnitude * sin(radians(snake_case					)					)]




def        snake_case_					(  snake_case      ,							snake_case      ,							snake_case = 10**-1					)  ->    bool:
       lowercase__:       NDArray[floataa]        =       cross(snake_case      ,							snake_case					)
       lowercase__:       float        =       sum(snake_case					)
       return abs(snake_case					) < eps


if __name__ == "__main__":
 # Test to check if it works
 __lowerCAmelCase			=							array(
     [
         polar_force(718.4, 1_80 - 30),
         polar_force(879.54, 45),
         polar_force(1_00, -90),
     ]
 )

 __lowerCAmelCase			=							array([[0, 0], [0, 0], [0, 0]])

 assert in_static_equilibrium(forces, location)

 # Problem 1 in image_data/2D_problems.jpg
 __lowerCAmelCase			=							array(
     [
         polar_force(30 * 9.81, 15),
         polar_force(2_15, 1_80 - 45),
         polar_force(2_64, 90 - 30),
     ]
 )

 __lowerCAmelCase			=							array([[0, 0], [0, 0], [0, 0]])

 assert in_static_equilibrium(forces, location)

 # Problem in image_data/2D_problems_1.jpg
 __lowerCAmelCase			=							array([[0, -20_00], [0, -12_00], [0, 1_56_00], [0, -1_24_00]])

 __lowerCAmelCase			=							array([[0, 0], [6, 0], [10, 0], [12, 0]])

 assert in_static_equilibrium(forces, location)

 import doctest

 doctest.testmod()


