Input (grade 5): On their way, those wild, undisturbed rivers are lined with dense rainforests, sand dunes or mangroves.
Output (grade 5): Along their banks, those wild, undisturbed rivers are lined with dense rainforests, sand dunes or mangroves.