We classify all minimal models X of dimension n, Kodaira dimension n-1 and with vanishing Chern number c1n−2c2(X)=0. This solves a problem of Kollár. Completing previous work of Kollár and Grassi, we also show that there is a universal constant ϵ>0 such that any minimal threefold satisfies either c1c2=0 or −c1c2>ϵ. This settles completely a conjecture of Kollár.