inp = require('fs').readFileSync('/dev/stdin', 'utf8').split('\n')
N = inp.shift() * 1
S = 100/4
T = 100/7
cnt = 0
for (i=0; i<=S; i++) {
  for (j=0; j<=T; j++) {
      if (i*4 + j*7 == N) {
          cnt++
          break;
      }
  }
}
console.log(cnt ? 'Yes' : 'No')