#include using namespace std; int main() { //cin读入优化 std::ios::sync_with_stdio(false); int n; cin >> n; if (n % 3 == 0 && n % 5 == 0) cout << "YES"; else cout << "NO"; return 0; }