import java.util.Scanner;
public class Main {

  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int cakeMax = N/4;
    int donutMax = N/7;
    String result = "No";

    for (int i = 0; i <= cakeMax; i++) {
      for (int j = 0; j <= donutMax; j++) {
        if ( i*4 + j*7 == N) {
          result = "Yes";
          break;
        }
      }
    }
    System.out.println(result);
    scanner.close();
  }
} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int cakeMax = N/4;
    int donutMax = N/7;
    String result = "No";

    for (int i = 0; i <= cakeMax; i++) {
      for (int j = 0; j <= donutMax; j++) {
        if ( i*4 + j*7 == N) {
          result = "Yes";
          break;
        }
      }
    }
    System.out.println(result);
    scanner.close();
  }
} Main public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int cakeMax = N/4;
    int donutMax = N/7;
    String result = "No";

    for (int i = 0; i <= cakeMax; i++) {
      for (int j = 0; j <= donutMax; j++) {
        if ( i*4 + j*7 == N) {
          result = "Yes";
          break;
        }
      }
    }
    System.out.println(result);
    scanner.close();
  } main {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int cakeMax = N/4;
    int donutMax = N/7;
    String result = "No";

    for (int i = 0; i <= cakeMax; i++) {
      for (int j = 0; j <= donutMax; j++) {
        if ( i*4 + j*7 == N) {
          result = "Yes";
          break;
        }
      }
    }
    System.out.println(result);
    scanner.close();
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner int cakeMax = N/4; cakeMax N/4 N 4 int donutMax = N/7; donutMax N/7 N 7 String result = "No"; result "No" for (int i = 0; i <= cakeMax; i++) {
      for (int j = 0; j <= donutMax; j++) {
        if ( i*4 + j*7 == N) {
          result = "Yes";
          break;
        }
      }
    } int i = 0; int i = 0; i 0 i <= cakeMax i cakeMax i++ i++ i {
      for (int j = 0; j <= donutMax; j++) {
        if ( i*4 + j*7 == N) {
          result = "Yes";
          break;
        }
      }
    } {
      for (int j = 0; j <= donutMax; j++) {
        if ( i*4 + j*7 == N) {
          result = "Yes";
          break;
        }
      }
    } for (int j = 0; j <= donutMax; j++) {
        if ( i*4 + j*7 == N) {
          result = "Yes";
          break;
        }
      } int j = 0; int j = 0; j 0 j <= donutMax j donutMax j++ j++ j {
        if ( i*4 + j*7 == N) {
          result = "Yes";
          break;
        }
      } {
        if ( i*4 + j*7 == N) {
          result = "Yes";
          break;
        }
      } if ( i*4 + j*7 == N) {
          result = "Yes";
          break;
        } i*4 + j*7 == N i*4 + j*7 i*4 i 4 j*7 j 7 N {
          result = "Yes";
          break;
        } result = "Yes" result "Yes" break; System.out.println(result) System.out.println System.out System System.out result scanner.close() scanner.close scanner String[] args args public class Main {

  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int cakeMax = N/4;
    int donutMax = N/7;
    String result = "No";

    for (int i = 0; i <= cakeMax; i++) {
      for (int j = 0; j <= donutMax; j++) {
        if ( i*4 + j*7 == N) {
          result = "Yes";
          break;
        }
      }
    }
    System.out.println(result);
    scanner.close();
  }
} public class Main {

  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int cakeMax = N/4;
    int donutMax = N/7;
    String result = "No";

    for (int i = 0; i <= cakeMax; i++) {
      for (int j = 0; j <= donutMax; j++) {
        if ( i*4 + j*7 == N) {
          result = "Yes";
          break;
        }
      }
    }
    System.out.println(result);
    scanner.close();
  }
} Main
import java.util.Scanner;
public class Main {

  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);

    int N = scanner.nextInt();
    int cakeMax = N/4;
    int donutMax = N/7;
    String result = "No";

    for (int i = 0; i <= cakeMax; i++) {
      for (int j = 0; j <= donutMax; j++) {
        if ( i*4 + j*7 == N) {
          result = "Yes";
          break;
        }
      }
    }
    System.out.println(result);
    scanner.close();
  }
}
