#!usr/bin/bash

read n
ok=0
for num in `seq 0 $n`
do
    a=$(((($n-${num}*4)/7)*7 + $num*4))
    if [ $a -eq $n ]; then
	ok=1
	break
    fi     
done
if [ $ok -eq 1 ]; then
    echo "Yes"
else
    echo "No"
fi
