Question: In which military branch did the president during the purchase of the setting of Out of the Wild serve?

full_context: Document 1: Lafayette C. Baker: Lafayette Curry Baker (October 13, 1826 – July 3, 1868) was a United States investigator and spy, serving the Union Army, during the American Civil War and under Presidents Abraham Lincoln and Andrew Johnson.
Document 2: Lincoln (novel): Set during the American Civil War, the novel describes the presidency of Abraham Lincoln through the eyes of several historical figures, including presidential secretary John Hay, First Lady Mary Todd Lincoln, Secretary of State William H. Seward, Secretary of the Treasury Salmon Chase, his daughter Kate Chase, U.S. Representative Elihu B. Washburne, and conspirators John Wilkes Booth and David Herold.
Document 3: Alaska Purchase: The Alaska Purchase (Russian: Продажа Аляски, tr. Prodazha Alyaski) was the United States' acquisition of Alaska from the Russian Empire on March 30, 1867, by a treaty ratified by the United States Senate, and signed by President Andrew Johnson.
Document 4: Alaska Purchase: Russia continued to see an opportunity to weaken British power by causing British Columbia, including the Royal Navy base at Esquimalt, to be surrounded or annexed by American territory. Following the Union victory in the civil war, the Tsar instructed the Russian minister to the United States, Eduard de Stoeckl, to re-enter into negotiations with William Seward in the beginning of March 1867. President Johnson was entangled in negotiations about Reconstruction and Seward had alienated a number of Republicans, so they believed that the purchase would help divert attention from the current domestic matters. The negotiations concluded after an all - night session with the signing of the treaty at 04: 00 on March 30, 1867, with the purchase price set at $7.2 million ($123 million today), or about 2 cents per acre ($4.74 / km).
Document 5: Department of Alaska: The Department of Alaska was the designation for the government of Alaska from its purchase by the United States of America in 1867 until its organization as the District of Alaska in 1884. During the department era, Alaska was variously under the jurisdiction of the U.S. Army (until 1877), the U.S. Dept. of the Treasury (from 1877 until 1879) and the U.S. Navy (from 1879 until 1884). The area later became the District of Alaska, then the Territory of Alaska, then the State of Alaska.
Document 6: John Aaron Rawlins: John Aaron Rawlins (February 13, 1831 September 6, 1869) was a general officer in the Union Army during the American Civil War and a cabinet officer in the Grant administration. A longtime confidant of Ulysses S. Grant, Rawlins served on Grant's staff throughout the war, rising to the rank of brevet major general, and was Grant's chief defender against allegations of insobriety. He was appointed Secretary of War when Grant was elected President of the United States.
Document 7: Reconstruction era: As Confederate states came back under control of the U.S. Army, President Abraham Lincoln set up reconstructed governments in Tennessee, Arkansas, and Louisiana during the war. He experimented by giving land to blacks in South Carolina. By fall 1865, the new President Andrew Johnson declared the war goals of national unity and the ending of slavery achieved and reconstruction completed. Republicans in Congress, refusing to accept Johnson's lenient terms, rejected new members of Congress, some of whom had been high - ranking Confederate officials a few months before. Johnson broke with the Republicans after vetoing two key bills that supported the Freedmen's Bureau and provided federal civil rights to the freedmen. The 1866 Congressional elections turned on the issue of Reconstruction, producing a sweeping Republican victory in the North, and providing the Radical Republicans with sufficient control of Congress to override Johnson's vetoes and commence their own ``Radical Reconstruction ''in 1867. That same year, Congress removed civilian governments in the South, and placed the former Confederacy under the rule of the U.S. Army. The army conducted new elections in which the freed slaves could vote, while whites who had held leading positions under the Confederacy were temporarily denied the vote and were not permitted to run for office.
Document 8: Catharinus P. Buckingham: Catharinus Putnam Buckingham (March 14, 1808 – August 30, 1888) was an American soldier, college professor, author, and industrialist. He served as a general in the Union Army during the American Civil War, and was the main assistant to the U.S. Secretary of War, Edwin M. Stanton, during part of the first term of the Lincoln Administration.
Document 9: Alaska: The Last Frontier: Alaska: The Last Frontier is an American reality cable television series on the Discovery Channel, currently in its 6th season of broadcast. The show documents the extended Kilcher family, descendants of a Swiss immigrant Alaska pioneer, at their homestead 11 miles outside of Homer. By living without plumbing or modern heating, the clan must subsist by hunting and preparing for the long winters. The Kilcher family are relatives of the singer Jewel, who has appeared on the show.
Document 10: Wild Things with Dominic Monaghan: Wild Things with Dominic Monaghan is a wildlife documentary series commissioned by Channel 5 and BBC America and presented by actor Dominic Monaghan, who also serves as an executive producer for the show. Each hour-long episode follows Monaghan, an avid outdoorsman, as he travels to a new exotic location in search of "some of the most dangerous and elusive creatures known to man." The show's 8-episode first series premiered in the UK on 9 November 2012 and in the U.S. on 22 January 2013, and was nominated for Best Reality Series at the 3rd Annual Critics' Choice Television Awards. In June 2013, "Wild Things with Dominic Monaghan" was renewed for a second series, which premiered in the U.S. on 25 March 2014 on BBC America. After Channel 5 elected not to acquire the second season, BBC Worldwide acquired the international rights to the show. In the US, the third season aired on the Travel Channel instead of BBC America. It originally aired in prime time on Wednesdays, but later moved to Saturday mornings.
Document 11: Alaska Purchase: The Alaska Purchase (Russian: Продажа Аляски, tr. Prodazha Alyaski) was the United States' acquisition of Alaska from the Russian Empire on March 30, 1867, by a treaty ratified by the United States Senate, and signed by president Andrew Johnson.
Document 12: Out of the Wild: Out of the Wild (known in the first season solely as The Alaska Experiment) is a Discovery Channel reality television series. The first and second seasons followed volunteers from urbanized backgrounds as they use survival skills in the back-country of Alaska during the fall and winter. The third season saw a relocation of the series to Venezuela, while keeping the same general format of season 2. The series was produced by Ricochet in the first season, and by Pilgrim Films in seasons 2 and 3.
Document 13: Alaska Purchase: Russia continued to see an opportunity to weaken British power by causing British Columbia, including the Royal Navy base at Esquimalt, to be surrounded or annexed by American territory. Following the Union victory in the Civil War, the Tsar instructed the Russian minister to the United States, Eduard de Stoeckl, to re-enter into negotiations with William H. Seward in the beginning of March 1867. President Johnson was entangled in negotiations about Reconstruction and Seward had alienated a number of Republicans, so they believed that the purchase would help divert attention from the domestic issues. The negotiations concluded after an all - night session with the signing of the treaty at 04: 00 on March 30, 1867, with the purchase price set at $7.2 million ($105 million in 2016), or about 2 cents per acre ($4.74 / km).
Document 14: Alaska: The Last Frontier: Alaska: The Last Frontier is an American reality cable television series on the Discovery Channel, currently in its 7th season of broadcast. The show documents the extended Kilcher family, descendants of Swiss immigrants and Alaskan pioneers, Yule and Ruth Kilcher, at their homestead 11 miles outside of Homer. By living without plumbing or modern heating, the clan chooses to subsist by farming, hunting and preparing for the long winters. The Kilcher family are relatives of the singer Jewel, who has appeared on the show.
Document 15: Wild 'n Out: For the first four seasons, the show filmed from Los Angeles / Hollywood and aired on MTV. The first run episodes were suspended as Mr. Renaissance Entertainment became Ncredible Entertainment in 2012. Upon being revived in 2012, the show was produced in New York City and aired on MTV2 during Seasons 5 -- 7, it also returned to that location for Season 9. In 2016, the show returned to airing new episodes on MTV and also for the first time since Season 4, production is in Los Angeles.
ground_truth: Union Army
sub_queries: Which place does Out of the Wild exist in? Answer: Alaska
who was the president when Alaska was purchased Answer: Andrew Johnson
Andrew Johnson >> military branch Answer: Union Army