#include <bits/stdc++.h>

int main() {
  int n;
  std::cin >> n;
  
  for (int i = 0; i <= n / 7; i++) {
    if ((n - 7 * i) % 4 == 0) {
      std::cout << "Yes\n";
      return 0;
    }
  }
  std::cout << "No\n";
}