lst=[[[1,2,3]],[[4,5,6]]]
def are_addable(lst):
	if(len(lst[0])==len(lst[1]) and len(lst[0][0])==len(lst[1][0]) and is_wellformed(lst[0])=='True' and is_wellformed(lst[1])=='True'):
		return("True")
	else:
		return("False")	
def add_lists(lst):
	l=[0 for i in range(len(lst[0]))]
	for i in range(len(lst[0])):
		l[i]=lst[0][i]+lst[1][i]
	return(l)
def add_matrices(lst):
	m=[ [ 0 for i in range(len(lst[0][0])) ] for j in range(len(lst[0])) ]
	if(are_addable(lst)=='True'):
		for i in range(len(lst[0])):
				m[i]=add_lists(lst[0][i],lst[1][i])
	    return(m)
	else:
		return("Invalid input")
print(add_matrices(lst))