The conjugate acid formed by addition of a proton to I is stabilised by two equivalent resonance structures and hence, compound I is the most basic .Further 20 amines (III) are more basic.than I0 amines (II) while amides (IV) are least basic due to delocalisation of lone pair of electrons of N over the CO group.