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