main = getLine >> getContents >>= print . div 100 . foldr1 gcd . map read . lines