ll@n,@p;wt(gcd(++n,p-1)<2&&n%p?"No":"Yes");