#!usr/bin/bash

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