parameters: (self, team, dist)
return_statement: return result
docstring: :type team: List[int]
          :type dist: int
          :rtype: int
docstring_summary: :type team: List[int]
          :type dist: int
          :rtype: int
docstring_tokens: : type team : List [ int ] : type dist : int : rtype : int
function: def catchMaximumAmountofPeople(self, team, dist):
          """
          :type team: List[int]
          :type dist: int
          :rtype: int
          """
          result = i = j = 0
          while i < len(team) and j < len(team):
              if i+dist < j or team[i] != 1:
                  i += 1
              elif j+dist < i or team[j] != 0:
                  j += 1
              else:
                  result += 1
                  i += 1
                  j += 1
          return result
function_tokens: def catchMaximumAmountofPeople ( self , team , dist ) : result = i = j = 0 while i < len ( team ) and j < len ( team ) : if i + dist < j or team [ i ] != 1 : i += 1 elif j + dist < i or team [ j ] != 0 : j += 1 else : result += 1 i += 1 j += 1 return result