#include <iostream>
using namespace std;
int main() {
int num;
cin >> num;
if (num % 5 == 0 && num % 3 != 0) {
cout << "Yes" << endl;
} else {
cout << "No" << endl;
}
return 0;
}
/**************************************************************
Problem: 1674
User: fuhoubin
Language: C++
Result: Wrong Answer
****************************************************************/