Which sentence shows the best placement for the modifier “listening to music”?

I walked to the store listening to music.
I walked listening to music to the store.
Listening to music, I walked to the store.
To the store, I walked to listening music.

Q&A Education