def nb_amis(L, m, s):
	pos_s = indice(L, s)
	if pos_s is None:
		return None
	amis = 0
	for i in range(len(m)):
		amis += m[i][pos_s]
	return amis