// Alternate Additions Problem Code: ALTERADDSolvedSubmit // Chef has 2 numbers A and B (A using namespace std; int main() { int t; cin>>t; while(t--) { int x,y; cin>>x>>y; if((y-x)%3==0) cout<<"YES"<