






from __future__ import annotations

def   snake_case (UpperCAmelCase__  )	->    Any:
		if not nums:
				return 0
		UpperCamelCase_: int   				=    nums[0]
		UpperCamelCase_: Dict   				=    0
		for num in nums[1:]:
				UpperCamelCase_: Any   				=    (
				    max_excluding + num,
				    max(a_     ,   a_  ),
				)
		return max(a_     ,   a_  )


if __name__ == "__main__":
			import doctest

			doctest.testmod()







def   snake_case (UpperCAmelCase__  )	->    int:
  assert isinstance(UpperCAmelCase__     ,   UpperCAmelCase__  ), F'''The input value of [n={number}] is not an integer'''

  if number == 1:
    return 2
  elif number < 1:
    UpperCamelCase_: List[Any]   				=    F'''The input value of [n={number}] has to be > 0'''
    raise ValueError(UpperCAmelCase__  )
  else:
    UpperCamelCase_: str   				=    sylvester(number - 1  )
    UpperCamelCase_: str   				=    num - 1
    UpperCamelCase_: Any   				=    num
    return lower * upper + 1


if __name__ == "__main__":
   print(F'''The 8th number in Sylvester\'s sequence: {sylvester(8)}''')