def somme(matrice):
    s = 0
    for ligne in matrice:
        for c in ligne:
            s += c
    return s
