#include<iostream> #include<cstdio> using namespace std; int main() { int a; cin>>a; if (a%7==0) cout<<"yes"; if (a%7!=0) cout<<"no"; return 0; }