uses clib; var n: int64; begin readln(n); if issquare(n) then writeln('YES') else writeln('NO') end.