


'''simple docstring'''



def 			_a			(		_lowercase      :			str						):





     '''simple docstring'''






     if not all(char in '''01''' for char in bin_string						):
          raise ValueError('''Non-binary value was passed to the function'''						)
     if not bin_string:
          raise ValueError('''Empty string was passed to the function'''						)
     __UpperCAmelCase			:				Tuple													=    ''''''
     while len(_lowercase						) % 3 != 0:
          __UpperCAmelCase			:				Dict													=    '''0''' + bin_string
     __UpperCAmelCase			:				Union[str, Any]													=    [
         bin_string[index : index + 3]
         for index in range(len(_lowercase						)						)
         if index % 3 == 0
     ]
     for bin_group in bin_string_in_3_list:
          __UpperCAmelCase			:				Optional[Any]													=    0
          for index, val in enumerate(_lowercase						):
               oct_val += int(2 ** (2 - index) * int(_lowercase						)						)
          oct_string += str(_lowercase						)
     return oct_string


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

      testmod()



'''simple docstring'''



def 			_a			(		_lowercase      :			int = 4000000						):





     '''simple docstring'''






     __UpperCAmelCase			:				Tuple													=    []
     __UpperCAmelCase							,     __UpperCAmelCase			:				int													=    0, 1
     while b <= n:
          if b % 2 == 0:
               even_fibs.append(_lowercase						)
          __UpperCAmelCase							,     __UpperCAmelCase			:				Dict													=    b, a + b
     return sum(_lowercase						)


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