#include using namespace std; #define int long long signed main(void){ int N; cin >> N; if( N % 6 == 0 ){ cout << "Yes" << endl;} else{ cout << "No" << endl;} return 0; }