character*3,parameter::c='…' character*300::S integer::i,total=0,prev=0,maxlen read *,S do i=1, LEN_TRIM(S) if(S(i:i+2).eq.c) then if(prev+3.eq.i.or.prev.eq.0) then total=total+1 prev = i maxlen=MAX(maxlen, total) end if end if end do print '(i0)', maxlen end program