We will give a proof of Ocneanu's announced classification of subfactors of the AFD type II 1 factor with the principal graphs A n , D n , E 7 , the Dynkin diagrams, and give a single explicit equation of exp π √ −1 24 and exp π √ −1 60for each of E 6 and E 8 such that its validity is equivalent to existence of two (and only two) subfactors for these principal graphs. Our main tool is flatness of connections on finite graphs, which is the key notion of Ocneanu's paragroup theory. We give the difference between the diagrams D 2n and D 2n+1 a meaning as a Z/2Z-obstruction for flatness arising in orbifold construction, which is an analogue of orbifold models in solvable lattice models.