
"""simple docstring"""


def 	lowerCamelCase__			(							UpperCAmelCase_				)->							int:







       """simple docstring"""
       UpperCamelCase					 =		0
       while num > 0:
              digit_sum += num % 10
              num //= 10
       return digit_sum



def 	lowerCamelCase__			(							UpperCAmelCase_ = 1_00				)->							int:







       """simple docstring"""
       UpperCamelCase					 =		1
       UpperCamelCase					 =		2

       for i in range(2		,      max_n + 1				):
              UpperCamelCase					 =		pre_numerator
              UpperCamelCase					 =		2 * i // 3 if i % 3 == 0 else 1
              UpperCamelCase					 =		cur_numerator
              UpperCamelCase					 =		e_cont * pre_numerator + temp

       return sum_digits(UpperCAmelCase_				)


if __name__ == "__main__":
      print(F'''{solution() = }''')







"""simple docstring"""


def 	lowerCamelCase__			(							UpperCAmelCase_ = 4_00_00_00				)->							int:







       """simple docstring"""
       UpperCamelCase					 =		[0, 1]
       UpperCamelCase					 =		0
       while fib[i] <= n:
              fib.append(fib[i] + fib[i + 1]				)
              if fib[i + 2] > n:
                     break
              i += 1
       UpperCamelCase					 =		0
       for j in range(len(UpperCAmelCase_				) - 1				):
              if fib[j] % 2 == 0:
                     total += fib[j]

       return total


if __name__ == "__main__":
      print(F'''{solution() = }''')





