import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int dollar = sc.nextInt();
        if(canBuy(dollar)) System.out.println("Yes");
        else System.out.println("No");
    }
    public static boolean canBuy(int dollar) {
        if(dollar == 0) return true;
        if(dollar < 0) return false;
        return canBuy(dollar - 4) || canBuy(dollar - 7) || canBuy(dollar - 11);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int dollar = sc.nextInt();
        if(canBuy(dollar)) System.out.println("Yes");
        else System.out.println("No");
    }
    public static boolean canBuy(int dollar) {
        if(dollar == 0) return true;
        if(dollar < 0) return false;
        return canBuy(dollar - 4) || canBuy(dollar - 7) || canBuy(dollar - 11);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int dollar = sc.nextInt();
        if(canBuy(dollar)) System.out.println("Yes");
        else System.out.println("No");
    } main {
        Scanner sc = new Scanner(System.in);
        int dollar = sc.nextInt();
        if(canBuy(dollar)) System.out.println("Yes");
        else System.out.println("No");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int dollar = sc.nextInt(); dollar sc.nextInt() sc.nextInt sc if(canBuy(dollar)) System.out.println("Yes");
        else System.out.println("No"); canBuy(dollar) canBuy dollar System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" String[] args args public static boolean canBuy(int dollar) {
        if(dollar == 0) return true;
        if(dollar < 0) return false;
        return canBuy(dollar - 4) || canBuy(dollar - 7) || canBuy(dollar - 11);
    } canBuy {
        if(dollar == 0) return true;
        if(dollar < 0) return false;
        return canBuy(dollar - 4) || canBuy(dollar - 7) || canBuy(dollar - 11);
    } if(dollar == 0) return true; dollar == 0 dollar 0 return true; true if(dollar < 0) return false; dollar < 0 dollar 0 return false; false return canBuy(dollar - 4) || canBuy(dollar - 7) || canBuy(dollar - 11); canBuy(dollar - 4) || canBuy(dollar - 7) || canBuy(dollar - 11) canBuy(dollar - 4) || canBuy(dollar - 7) || canBuy(dollar - 11) canBuy(dollar - 4) canBuy dollar - 4 dollar 4 canBuy(dollar - 7) canBuy dollar - 7 dollar 7 canBuy(dollar - 11) canBuy dollar - 11 dollar 11 int dollar dollar public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int dollar = sc.nextInt();
        if(canBuy(dollar)) System.out.println("Yes");
        else System.out.println("No");
    }
    public static boolean canBuy(int dollar) {
        if(dollar == 0) return true;
        if(dollar < 0) return false;
        return canBuy(dollar - 4) || canBuy(dollar - 7) || canBuy(dollar - 11);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int dollar = sc.nextInt();
        if(canBuy(dollar)) System.out.println("Yes");
        else System.out.println("No");
    }
    public static boolean canBuy(int dollar) {
        if(dollar == 0) return true;
        if(dollar < 0) return false;
        return canBuy(dollar - 4) || canBuy(dollar - 7) || canBuy(dollar - 11);
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int dollar = sc.nextInt();
        if(canBuy(dollar)) System.out.println("Yes");
        else System.out.println("No");
    }
    public static boolean canBuy(int dollar) {
        if(dollar == 0) return true;
        if(dollar < 0) return false;
        return canBuy(dollar - 4) || canBuy(dollar - 7) || canBuy(dollar - 11);
    }
}
