Input (grade 13): On August 14, 1848, Congress passed the Act to Establish the Territorial Government of Oregon, which created what was officially the Territory of Oregon.
Output (grade 8): The Territory of Oregon was organized on August 14, 1848, by an act of Congress out of the U.S. portion of the Oregon Country below the 49th parallel north.