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