#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; if(n%7==0) { cout<<"yes"; } else { cout<<"no"; } return 0; }