President accepts resignation of two ministers