print~~grep$_>1&&($_%2?++$_:($_/=2)),(<>)x99