let x = Int(readLine()!)!
print([0,4,10].contains(x) ? "Yes" : "No")