main = do
	getLine
	getContents >>= print . (100 `div`) . foldl1 gcd . map read . lines