Input (grade 4): Up to that time, Alaskans had flown only the U.S. flag since the territory was purchased from Russia in 1867.
Output (grade 2): Up to that time, Alaskans had flown only the U.S. flag.