How bamboo rafts pass dams