def division_algo_coeff(a,b):
    """
    Calculates coefficients q and r in a = bq + r according to division algo

    Parameters
    ----------
    a : int
        denotes a in a = bq + r
    b : int 
        denotes b in a = bq + r
    return : two int
        return two integers
        first one refers to q (quotient)
        second one refers to r (remainder)

    """
    if(b == 0):
        raise TypeError(
            "Cannot divide by zero"
        )
    quotient = int(a/b)
    remainder = a%b
    return quotient , remainder