<reponame>chisleu/neo-boa<gh_stars>1-10

def Main(a, b, c, d):
    """

    :param a:
    :param b:
    :param c:
    :param d:
    :return:
    """
    f = b * d

    g = d / c

    q = a + f

    m = q + g

    h = m - q

    j = h % g

    return j

def Main(a, b, c, d):
    """

    :param a:
    :param b:
    :param c:
    :param d:
    :return:
    """
    f = b * d

    g = d / c

    q = a + f

    m = q + g

    h = m - q

    j = h % g

    return j
:param a:     :param b:     :param c:     :param d:     :return: