Arrange the following in their decreasing order of basic character.
III > IV > I > II
I > II > III > IV
IV > III > II > I
II > III > I > IV
(III) +I effect of two Me groups > (IV) NH2> (I) EWG (C=O) group > (II) EWG two (C=O) groups.