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