The glaciers shaped the valleys they moved through.
(The glaciers; shaped; the valleys they moved through) (the valleys; moved; through)
The glaciers the valleys
shaped moved
the valleys they moved through
through