use bignum;print sqrt<>*2+.25~~/\.5$/?"YES $`":NO