/** * author: TakeruOkuyama * created: 2020-04-09 12:39:57 **/ #include #define rep(i, n) for(int i = 0; i < (n); i++) using namespace std; using ll = long long; using P = pair; int main(){ int N; cin >> N; if(N % 6 == 0){ cout << "Yes" << endl; }else{ cout << "No" << endl; } return 0;} /** **/