#include using namespace std; int main(){ int c; cin>>c; cout<<(c%6==0 ? "Yes":"No")<