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