#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int x;
	cin >> x;
	if (x>=3 && x<=18) cout << "Yes";
	else cout << "No";
	return 0;
}