m=1

yes "`sed -n -e '$p'`" | head -40 | while read a; do
    echo $m $a
    
    m=`expr $m \* 2`
done | while read m a; do
    echo $a | xargs -n1 | while read i; do
	expr $i / $m
    done | xargs -n222
done | cat -n | while read i a; do
    echo $a | xargs -n1 | grep '[13579]$' > /dev/null || continue

    expr $i - 1

    break
done
