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