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