import math


def find_ratio(points):
    """Find landmark ratios."""
    x_coor = [0] * 4
    y_coor = [0] * 4
    for i in range(4):
        x_coor[i] = points[(2 * i)]
        y_coor[i] = points[(2 * i) + 1]

    dist1 = math.sqrt((x_coor[0] - x_coor[1])**2 + (y_coor[0] - y_coor[1])**2)
    dist2 = math.sqrt((x_coor[2] - x_coor[3])**2 + (y_coor[2] - y_coor[3])**2)
    if dist2 == 0:
        return 0
    ratio = dist1 / dist2

    return ratio