



def       lowercase       (   SCREAMING_SNAKE_CASE__       :	int = 4_000_000				)  ->     int:
 _snake_case    :  Any					=					[]
 _snake_case	,    _snake_case    :  str					=					0, 1
 while b <= n:
  if b % 2 == 0:
   even_fibs.append(SCREAMING_SNAKE_CASE__				)
  _snake_case	,    _snake_case    :  Optional[int]					=					b, a + b
 return sum(SCREAMING_SNAKE_CASE__				)


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





def       lowercase       (   SCREAMING_SNAKE_CASE__       :	int = 1_000				)  ->     int:
 _snake_case	,    _snake_case    :  str					=					1, 1
 _snake_case    :  List[Any]					=					2
 while True:
  _snake_case    :  Union[str, Any]					=					0
  _snake_case    :  int					=					fa + fa
  _snake_case	,    _snake_case    :  Union[str, Any]					=					fa, f
  index += 1
  for _ in str(SCREAMING_SNAKE_CASE__				):
   i += 1
  if i == n:
   break
 return index


if __name__ == "__main__":
  print(solution(int(str(input()).strip())))
