let arr = readLine()!.characters.split{$0==" "}.map{Int(String($0))}
let h = arr[0]
let n = arr[1]

let a = readLine()!.characters.split{$0==" "}.map{Int(String($0))}
var sumA = 0
a.forEach{sumA += $0!}

print((h <= sumA) ? "Yes" : "No")