#include int main() { int n; scanf("%d", &n); if (n % 6 == 0) printf("Yes\n"); else printf("No\n"); return 0; }