A certain naval force has 7 ships of A, B, C, D, E, H, and G. It is planned to form two fleets to sail. There are 3 ships in the first formation and 4 ships in the second formation. The formation must meet the following conditions: (1) The aircraft carrier must be listed in the second formation; (2) E and C have at most one formation in the first formation; 3) A and C are not in the same formation; (4) If B is arranged in the first formation, D must also be arranged in the first formation.
If A is in the second formation, E must also be in the second formation.