





def 		A_				(     _lowerCAmelCase     )						-> str:
 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	:					List[str]       	=   ""
 while len(_lowerCAmelCase     ) % 3 != 0:
  UpperCamelCase	:					int       	=   "0" + bin_string
 UpperCamelCase	:					Optional[int]       	=   [
     bin_string[index : index + 3]
     for index in range(len(_lowerCAmelCase     )     )
     if index % 3 == 0
 ]
 for bin_group in bin_string_in_3_list:
  UpperCamelCase	:					Any       	=   0
  for index, val in enumerate(_lowerCAmelCase     ):
   oct_val += int(2 ** (2 - index) * int(_lowerCAmelCase     )     )
  oct_string += str(_lowerCAmelCase     )
 return oct_string


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

    testmod()




"""simple docstring"""







def 					a__			(				SCREAMING_SNAKE_CASE    :    int				,      SCREAMING_SNAKE_CASE    :    List[Any]				,      SCREAMING_SNAKE_CASE    :    str				,      SCREAMING_SNAKE_CASE    :    List[Any]				):


  '''simple docstring'''







  if height >= 1:
    move_tower(height - 1				,      SCREAMING_SNAKE_CASE				,      SCREAMING_SNAKE_CASE				,      SCREAMING_SNAKE_CASE				)
    move_disk(SCREAMING_SNAKE_CASE				,      SCREAMING_SNAKE_CASE				)
    move_tower(height - 1				,      SCREAMING_SNAKE_CASE				,      SCREAMING_SNAKE_CASE				,      SCREAMING_SNAKE_CASE				)
def 					a__			(				SCREAMING_SNAKE_CASE    :    Tuple				,      SCREAMING_SNAKE_CASE    :    Optional[int]				):


  '''simple docstring'''







  print("moving disk from"				,      SCREAMING_SNAKE_CASE				,      "to"				,      SCREAMING_SNAKE_CASE				)
def 					a__			(				):


  '''simple docstring'''







  lowerCAmelCase     :     Optional[int]								=							int(input("Height of hanoi: "				).strip()				)
  move_tower(SCREAMING_SNAKE_CASE				,      "A"				,      "B"				,      "C"				)


if __name__ == "__main__":
     main()





