def least_residue(a , m):
    """
    Returns least residue of a (mod m)

    Parameters
    ----------
    a : int
        denotes a in a (mod m)
    m : int
        denotes m in a (mod m)
    return : int
        returns integer least residue

    """
    return a%m