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