<>;print+(($x=$_)&1?`factor @{[grep$_>0,map$x-(1<<$_),1..60]}`=~/:( \w+)\1* /:$_>2)?Yes:No,$/for<>