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