import Foundation
var count = 0
let N = Int(readLine()!)!
for i in 0 ... N/4+1 {
    for j in 0 ... N/7+1 {
        if 4*i + 7*j == N {
            count += 1
        }
    }
}
if count == 0 {
    print("No")
} else {
    print("Yes")
}