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