input: def triple_fib(n: int):
      """The TripleFib sequence is akin to the Fibonacci series but is defined as follows:
      triple_fib(0) == 0
      triple_fib(1) == 0
      triple_fib(2) == 1
      triple_fib(n) == triple_fib(n-1) + triple_fib(n-2) + triple_fib(n-3).
      Develop a method to quickly determine the n-th term of the TripleFib sequence.
      >>> triple_fib(1)
      0
      >>> triple_fib(5)
      4
      >>> triple_fib(8)
      24
      """
output:     
      if n == 0:
          return 0
      elif n == 1:
          return 0
      elif n == 2:
          return 1
  
      a, b, c = 0, 0, 1
      for _ in range(3, n + 1):
          a, b, c = b, c, a + b + c
  
      return c
  