Total (3e,2f,2i rest 4 all different) i.e. 7 types.
(i) Al different 6P4=6×5×4×3=360 .
(ii) Two different, two alike.
2C1×5C2×4!2!=240
(iii) 3 alike, 1 different
1C1×5C1×4!3!=20
(iv) 2 alike of one type and 2 alike of other type.
2C2×4!2!2!=6.
∴ Total number of words =360+240+20+6=626.