#include using namespace std; typedef long long ll; // 条件を見落としていませんか? int main () { ll N; cin >> N; if (N % 6 == 0) puts("Yes"); else puts("No"); }