Task: Question Answering
Input (English): Context_1 : 1600 Pennsylvania Avenue is an MSNBC television program hosted by David Shuster that ended in 2009. The show is a panel discussion of news and trends in American politics among the panelists and anchor. It is a continuation of the show Race for the White House, which was originally hosted by David Gregory and aired in the same time slot from March to November 2008. Shuster became the host of the show when Gregory became moderator of NBC's "Meet the Press". Context_2 : David Gregory "Dave" Smith (born 24 July 1955) is a retired male race walker from Australia, who represented his native country at two consecutive Summer Olympics, starting in 1980 (Moscow). His best Olympic result was finishing in tenth place in the men's 20 km race at the 1984 Summer Olympics. Context_3 : David Gregory Cressman (born January 2, 1950 in Kitchener, Ontario) is a retired Canadian ice hockey left winger. He played 85 games in the NHL for the Minnesota North Stars over the 1974–75 and 1975–76 NHL seasons. Context_4 : David Gregory (20 December 1625 – 1720) was a Scottish physician and inventor. His surname is sometimes spelt as Gregorie, the original Scottish spelling. He inherited Kinnairdy Castle in 1664. Three of his twenty-nine children became mathematics professors. He is credited with inventing a military cannon that Isaac Newton described as "being destructive to the human species". Copies and details of the model no longer exist. Gregory's use of a barometer to predict farming-related weather conditions led him to be accused of witchcraft by Presbyterian ministers from Aberdeen, although he was never convicted. Context_5 : Newton's minimal resistance problem is a problem of finding a solid of revolution which experiences a minimum resistance when it moves through the homogeneous fluid with constant velocity in the direction of the axis of revolution, named after Isaac Newton, who studied the problem in 1685 and published in 1687 in his Principia Mathematica. This problem is considered as one of the first problems solved in the calculus of variations, which appeared even before the brachistochrone problem. Newton published the solution in Principia Mathematica without his derivation and David Gregory was the first person who approached Newton and persuaded him to write an analysis for him. Then the derivation were shared to his students and peers by Gregory. Context_6 : David Gregory-Kumar (born David Gregory) is a news correspondent for BBC Midlands Today, covering the English midlands. He is the science and environmental correspondent. Context_7 : David Gregory Phillips is a fictional character on the CBS crime drama "", portrayed by David Berman, who also serves as head researcher for the series. From Season 10 onwards David Berman has been credited in the opening titles. Context_8 : David Gregory is an American author of Christian fiction. David is a native of Texas. Context_9 : Kinnairdy Castle is a tower house, having five storeys and a garret, two miles south of Aberchirder, Aberdeenshire, Scotland. The alternative name is Old Kinnairdy. Context_10 : Plague Town is a 2008 American horror film directed by David Gregory and written by David Gregory and John Cregan. fact_1 : David Gregory (20 December 1625 – 1720) was a Scottish physician and inventor. fact_2 :  He inherited Kinnairdy Castle in 1664. fact_3 : Kinnairdy Castle is a tower house, having five storeys and a garret, two miles south of Aberchirder, Aberdeenshire, Scotland. Question: How many storeys are in the castle inherited by David Gregory?
Output (English): five