read $_ x for x in $x;{ a[$1+x]=1;} $1. ./$0 32 c= i=$1 for((;++i&31;a[i]?r=r>++c?r:c,i^=32:0)){ :;} $1echo $r