((a)) In order to aid navigation and to prevent disasters, collisions, and wrecks of vessels and aircraft, the Coast Guard may establish, maintain, and operate:
((1)) aids to maritime navigation required to serve the needs of the armed forces or of the commerce of the United States;
((2)) aids to air navigation required to serve the needs of the armed forces of the United States peculiar to warfare and primarily of military concern as determined by the Secretary of Defense or the Secretary of any department within the Department of Defense and as required by any of those officials; and
((3)) electronic aids to navigation systems (a) required to serve the needs of the armed forces of the United States peculiar to warfare and primarily of military concern as determined by the Secretary of Defense or any department within the Department of Defense; or (b) required to serve the needs of the maritime commerce of the United States; or (c) required to serve the needs of the air commerce of the United States as requested by the Administrator of the Federal Aviation Administration.
((b)) In the case of pierhead beacons, the Commandant may—
((1)) acquire, by donation or purchase in behalf of the United States, the right to use and occupy sites for pierhead beacons; and
((2)) properly mark all pierheads belonging to the United States situated on the northern and northwestern lakes, whenever the Commandant is duly notified by the department charged with the construction or repair of pierheads that the construction or repair of any such pierheads has been completed.