solution if (python) bf is different from (c++) bf
solution if (python) bf is different from (c++) bf