ll@n,@m; char a[n]{}; rep(i,1,n+1){ if(a[powmod(i,m,n)]++){ wt("No"); exit(0); } } wt("Yes");