import java.util.*;
class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();

        if(N%7 == 0 || N%4 == 0){
            System.out.println("Yes");
            System.exit(0);
        }
        while(N>=4){
            N -= 4;
            if(N%7 == 0){
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();

        if(N%7 == 0 || N%4 == 0){
            System.out.println("Yes");
            System.exit(0);
        }
        while(N>=4){
            N -= 4;
            if(N%7 == 0){
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();

        if(N%7 == 0 || N%4 == 0){
            System.out.println("Yes");
            System.exit(0);
        }
        while(N>=4){
            N -= 4;
            if(N%7 == 0){
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
    } main {
        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();

        if(N%7 == 0 || N%4 == 0){
            System.out.println("Yes");
            System.exit(0);
        }
        while(N>=4){
            N -= 4;
            if(N%7 == 0){
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan if(N%7 == 0 || N%4 == 0){
            System.out.println("Yes");
            System.exit(0);
        } N%7 == 0 || N%4 == 0 N%7 == 0 N%7 N 7 0 N%4 == 0 N%4 N 4 0 {
            System.out.println("Yes");
            System.exit(0);
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" System.exit(0) System.exit System 0 while(N>=4){
            N -= 4;
            if(N%7 == 0){
                System.out.println("Yes");
                System.exit(0);
            }
        } N>=4 N 4 {
            N -= 4;
            if(N%7 == 0){
                System.out.println("Yes");
                System.exit(0);
            }
        } N -= 4 N 4 if(N%7 == 0){
                System.out.println("Yes");
                System.exit(0);
            } N%7 == 0 N%7 N 7 0 {
                System.out.println("Yes");
                System.exit(0);
            } System.out.println("Yes") System.out.println System.out System System.out "Yes" System.exit(0) System.exit System 0 System.out.println("No") System.out.println System.out System System.out "No" String[] args args
import java.util.*;
class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);

        int N = scan.nextInt();

        if(N%7 == 0 || N%4 == 0){
            System.out.println("Yes");
            System.exit(0);
        }
        while(N>=4){
            N -= 4;
            if(N%7 == 0){
                System.out.println("Yes");
                System.exit(0);
            }
        }
        System.out.println("No");
    }
}
