def unique(L):
    """Return a list of unhashable elements in s, but without duplicates.
    [[1, 2], [2, 3], [1, 2]] >>> [[1, 2], [2, 3]]"""
    nDupli = 0
    nZcolinear = 0
    L.sort()
    last = L[-1]
    for i in range(len(L) - 2, -1, -1):
        if last[:2] == L[i][:2]:
            if last[2] == L[i][2]:
                nDupli += 1
            else:
                nZcolinear += 1
            del L[i]
        else:
            last = L[i]
    return nDupli, nZcolinear
