import java.util.*;

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

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n1 = sc.nextInt();
    int four = 4;
    int seven = 7;
    int a = n1;
    
    if(n1%four==0 || n1%seven==0){
      System.out.println("Yes");
      return;
    }
    
    while(n1 > 0){
      n1 -= seven;
      if(n1 > 0 && n1 % four == 0){
        System.out.println("Yes");
        return;
      }
    }
    
    while(a > 0){
      a -= four;
      if(n1 > 0 && n1 % seven == 0){
        System.out.println("Yes");
        return;
      }
    }
    
    System.out.println("No");
  }
}
