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