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