import math, sequtils, strutils

let
  input = stdin.lines.toSeq.map parseInt
  a = input[1..^1]

echo 100 div a.gcd