import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    boolean flg = false;
    for(int i=0; i<=n/4; i++) {
      for(int j=0; j<=n/7; j++) {
        if((4*i+7*j)==n) {
          flg = true;
          break;
        }
      }
    }
    System.out.println(flg==true?"Yes":"No");
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    boolean flg = false;
    for(int i=0; i<=n/4; i++) {
      for(int j=0; j<=n/7; j++) {
        if((4*i+7*j)==n) {
          flg = true;
          break;
        }
      }
    }
    System.out.println(flg==true?"Yes":"No");
  }
} Main public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    boolean flg = false;
    for(int i=0; i<=n/4; i++) {
      for(int j=0; j<=n/7; j++) {
        if((4*i+7*j)==n) {
          flg = true;
          break;
        }
      }
    }
    System.out.println(flg==true?"Yes":"No");
  } main {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    boolean flg = false;
    for(int i=0; i<=n/4; i++) {
      for(int j=0; j<=n/7; j++) {
        if((4*i+7*j)==n) {
          flg = true;
          break;
        }
      }
    }
    System.out.println(flg==true?"Yes":"No");
  } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) int n = Integer.parseInt(in.readLine()); n Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in boolean flg = false; flg false for(int i=0; i<=n/4; i++) {
      for(int j=0; j<=n/7; j++) {
        if((4*i+7*j)==n) {
          flg = true;
          break;
        }
      }
    } int i=0; int i=0; i 0 i<=n/4 i n/4 n 4 i++ i++ i {
      for(int j=0; j<=n/7; j++) {
        if((4*i+7*j)==n) {
          flg = true;
          break;
        }
      }
    } {
      for(int j=0; j<=n/7; j++) {
        if((4*i+7*j)==n) {
          flg = true;
          break;
        }
      }
    } for(int j=0; j<=n/7; j++) {
        if((4*i+7*j)==n) {
          flg = true;
          break;
        }
      } int j=0; int j=0; j 0 j<=n/7 j n/7 n 7 j++ j++ j {
        if((4*i+7*j)==n) {
          flg = true;
          break;
        }
      } {
        if((4*i+7*j)==n) {
          flg = true;
          break;
        }
      } if((4*i+7*j)==n) {
          flg = true;
          break;
        } (4*i+7*j)==n (4*i+7*j) 4*i 4 i 7*j 7 j n {
          flg = true;
          break;
        } flg = true flg true break; System.out.println(flg==true?"Yes":"No") System.out.println System.out System System.out flg==true?"Yes":"No" flg==true flg true "Yes" "No" String[] args args public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    boolean flg = false;
    for(int i=0; i<=n/4; i++) {
      for(int j=0; j<=n/7; j++) {
        if((4*i+7*j)==n) {
          flg = true;
          break;
        }
      }
    }
    System.out.println(flg==true?"Yes":"No");
  }
} public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    boolean flg = false;
    for(int i=0; i<=n/4; i++) {
      for(int j=0; j<=n/7; j++) {
        if((4*i+7*j)==n) {
          flg = true;
          break;
        }
      }
    }
    System.out.println(flg==true?"Yes":"No");
  }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    int n = Integer.parseInt(in.readLine());
    boolean flg = false;
    for(int i=0; i<=n/4; i++) {
      for(int j=0; j<=n/7; j++) {
        if((4*i+7*j)==n) {
          flg = true;
          break;
        }
      }
    }
    System.out.println(flg==true?"Yes":"No");
  }
}
