ll@s; rep(i,1d6){ if(1ll*i*i%1d6==s){ wt("YES"); exit(0); } } wt("NO");