






'''simple docstring'''
from __future__ import annotations





def 	_a(					UpperCamelCase__			:  list[int],		UpperCamelCase__			:  int							):




      '''simple docstring'''






      if len(UpperCamelCase__							) < k or k < 0:
            raise ValueError('''Invalid Input'''							)
      SCREAMING_SNAKE_CASE__       :			Any													=sum(array[:k]							)
      for i in range(len(UpperCamelCase__							) - k							):
            SCREAMING_SNAKE_CASE__       :			Any													=current_sum - array[i] + array[i + k]
            SCREAMING_SNAKE_CASE__       :			List[str]													=max(UpperCamelCase__,		UpperCamelCase__							)
      return max_sum


if __name__ == "__main__":
  from doctest import testmod
  from random import randint

  testmod()
  a_					=	[randint(-1_0_0_0, 1_0_0_0) for i in range(1_0_0)]
  a_					=	randint(0, 1_1_0)
  print(F'''The maximum sum of {k} consecutive elements is {max_sum_in_array(array,k)}''')







'''simple docstring'''
from math import factorial





def 	_a(					UpperCamelCase__			:  int = 1_0_0							):




      '''simple docstring'''






      return sum(int(UpperCamelCase__							) for x in str(factorial(UpperCamelCase__							)							)							)


if __name__ == "__main__":
  print(solution(int(input('Enter the Number: ').strip())))