Input (grade 8): When Commodore John D. Sloat of the United States Navy sailed into Monterey Bay and began the military occupation of California by the United States.
Output (grade 7): This Republic ended suddenly, however, when Commodore John D. Sloat of the United States Navy sailed into San Francisco Bay.