import java.util.Scanner;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Map;
import java.util.HashMap;
import static java.lang.Math.*;

public class Main
{
    int n;
    
    public static void main(String args[])
    {
	new Main().solve();
    }
    
    void solve()
    {
	in();
	
	out();
    }

    void in()
    {
	Scanner sc = new Scanner(System.in);
	n = sc.nextInt();
    }

    void out()
    {
	boolean flg = false;
	for(int i = n; i >= 0; i -= 4) {
	    if(i % 7 == 0 || i % 4 == 0) flg = true;
	}

	out(flg ? "Yes" : "No");
    }
    
    void out(int n)
    {
	System.out.println(n);
    }

    void out(double n)
    {
	System.out.println(n);
    }

    void out(long n)
    {
	System.out.println(n);
    }
    
    void out(char c)
    {
	System.out.print(c);
    }
    
    void out(String s)
    {
	System.out.println(s);
    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Map; Map java.util import java.util.HashMap; HashMap java.util import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; public class Main
{
    int n;
    
    public static void main(String args[])
    {
	new Main().solve();
    }
    
    void solve()
    {
	in();
	
	out();
    }

    void in()
    {
	Scanner sc = new Scanner(System.in);
	n = sc.nextInt();
    }

    void out()
    {
	boolean flg = false;
	for(int i = n; i >= 0; i -= 4) {
	    if(i % 7 == 0 || i % 4 == 0) flg = true;
	}

	out(flg ? "Yes" : "No");
    }
    
    void out(int n)
    {
	System.out.println(n);
    }

    void out(double n)
    {
	System.out.println(n);
    }

    void out(long n)
    {
	System.out.println(n);
    }
    
    void out(char c)
    {
	System.out.print(c);
    }
    
    void out(String s)
    {
	System.out.println(s);
    }
} Main int n; n public static void main(String args[])
    {
	new Main().solve();
    } main {
	new Main().solve();
    } new Main().solve() new Main().solve new Main() String args[] args void solve()
    {
	in();
	
	out();
    } solve {
	in();
	
	out();
    } in() in out() out void in()
    {
	Scanner sc = new Scanner(System.in);
	n = sc.nextInt();
    } in {
	Scanner sc = new Scanner(System.in);
	n = sc.nextInt();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) n = sc.nextInt() n sc.nextInt() sc.nextInt sc void out()
    {
	boolean flg = false;
	for(int i = n; i >= 0; i -= 4) {
	    if(i % 7 == 0 || i % 4 == 0) flg = true;
	}

	out(flg ? "Yes" : "No");
    } out {
	boolean flg = false;
	for(int i = n; i >= 0; i -= 4) {
	    if(i % 7 == 0 || i % 4 == 0) flg = true;
	}

	out(flg ? "Yes" : "No");
    } boolean flg = false; flg false for(int i = n; i >= 0; i -= 4) {
	    if(i % 7 == 0 || i % 4 == 0) flg = true;
	} int i = n; int i = n; i n i >= 0 i 0 i -= 4 i -= 4 i 4 {
	    if(i % 7 == 0 || i % 4 == 0) flg = true;
	} {
	    if(i % 7 == 0 || i % 4 == 0) flg = true;
	} if(i % 7 == 0 || i % 4 == 0) flg = true; i % 7 == 0 || i % 4 == 0 i % 7 == 0 i % 7 i 7 0 i % 4 == 0 i % 4 i 4 0 flg = true flg true out(flg ? "Yes" : "No") out flg ? "Yes" : "No" flg "Yes" "No" void out(int n)
    {
	System.out.println(n);
    } out {
	System.out.println(n);
    } System.out.println(n) System.out.println System.out System System.out n int n n void out(double n)
    {
	System.out.println(n);
    } out {
	System.out.println(n);
    } System.out.println(n) System.out.println System.out System System.out n double n n void out(long n)
    {
	System.out.println(n);
    } out {
	System.out.println(n);
    } System.out.println(n) System.out.println System.out System System.out n long n n void out(char c)
    {
	System.out.print(c);
    } out {
	System.out.print(c);
    } System.out.print(c) System.out.print System.out System System.out c char c c void out(String s)
    {
	System.out.println(s);
    } out {
	System.out.println(s);
    } System.out.println(s) System.out.println System.out System System.out s String s s public class Main
{
    int n;
    
    public static void main(String args[])
    {
	new Main().solve();
    }
    
    void solve()
    {
	in();
	
	out();
    }

    void in()
    {
	Scanner sc = new Scanner(System.in);
	n = sc.nextInt();
    }

    void out()
    {
	boolean flg = false;
	for(int i = n; i >= 0; i -= 4) {
	    if(i % 7 == 0 || i % 4 == 0) flg = true;
	}

	out(flg ? "Yes" : "No");
    }
    
    void out(int n)
    {
	System.out.println(n);
    }

    void out(double n)
    {
	System.out.println(n);
    }

    void out(long n)
    {
	System.out.println(n);
    }
    
    void out(char c)
    {
	System.out.print(c);
    }
    
    void out(String s)
    {
	System.out.println(s);
    }
} public class Main
{
    int n;
    
    public static void main(String args[])
    {
	new Main().solve();
    }
    
    void solve()
    {
	in();
	
	out();
    }

    void in()
    {
	Scanner sc = new Scanner(System.in);
	n = sc.nextInt();
    }

    void out()
    {
	boolean flg = false;
	for(int i = n; i >= 0; i -= 4) {
	    if(i % 7 == 0 || i % 4 == 0) flg = true;
	}

	out(flg ? "Yes" : "No");
    }
    
    void out(int n)
    {
	System.out.println(n);
    }

    void out(double n)
    {
	System.out.println(n);
    }

    void out(long n)
    {
	System.out.println(n);
    }
    
    void out(char c)
    {
	System.out.print(c);
    }
    
    void out(String s)
    {
	System.out.println(s);
    }
} Main
import java.util.Scanner;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Map;
import java.util.HashMap;
import static java.lang.Math.*;

public class Main
{
    int n;
    
    public static void main(String args[])
    {
	new Main().solve();
    }
    
    void solve()
    {
	in();
	
	out();
    }

    void in()
    {
	Scanner sc = new Scanner(System.in);
	n = sc.nextInt();
    }

    void out()
    {
	boolean flg = false;
	for(int i = n; i >= 0; i -= 4) {
	    if(i % 7 == 0 || i % 4 == 0) flg = true;
	}

	out(flg ? "Yes" : "No");
    }
    
    void out(int n)
    {
	System.out.println(n);
    }

    void out(double n)
    {
	System.out.println(n);
    }

    void out(long n)
    {
	System.out.println(n);
    }
    
    void out(char c)
    {
	System.out.print(c);
    }
    
    void out(String s)
    {
	System.out.println(s);
    }
}
