A=array([[a,b,c],[0,d,e],[0,0,f]])

g=det(A)

if g==0:

     print 'dependent'

else:

     print 'independent'