let sanka = Int(readLine()!)!

let inpt = readLine()!.split(separator: " ").map{ Int($0)! }
let dayCount = inpt[0]
let amari = inpt[1]

var eatCount = 0
for _ in 0..<sanka {
    let num = Int(readLine()!)!
    eatCount += (1...dayCount).filter{ num == 1 || $0 % num == 1 }.count
}

let ans = eatCount + amari
print(ans)
