#include<iostream> using namespace std; int main(){ short n; while(cin>>n){ if(n%3==0) cout<<"YES"<<endl; else cout<<"NO"<<endl; } }
#include<iostream> using namespace std; int main(){ short n; while(cin>>n){ if(n%3==0) cout<<"YES"<<endl; else cout<<"NO"<<endl; } }
哈哈會na