Solution (39 moves).