The villagers had been cut off by floods and landslides.