#include using namespace std; int main () { int i; cin>>i; if (i%6 == 0) { cout<<"Yes"<