{ll@a,@b;wt(powmod(a,b,7)-powmod(b,a,7)?"No":"Yes");}