func mySplit(_ inText:String)->[String] {
    var ret = [String]()

    var temp = ""
    for c in inText {
        if(c == " ") {
            ret.append(temp)
            temp = ""
        } else {
            temp += String(c)
        }
    }
    if !temp.isEmpty {
        ret.append(temp)
    }
    return ret
}

let sanka = Int(readLine()!)!

let inpt = mySplit(readLine()!).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)
