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