ll@a,@b,@t[a],@s[b],g=gcd(t(a)); rep(i,b){ if(s[i]%g){ wt("No"); exit(0); } } wt("Yes");