<>;map{$-|=$_}glob<>;print~$-&$-+1