Rewrite the following text to remove any grammar issues:
For her surprise, the man took this piece, split it into two halves, ate one of them and left the other for her.
To her surprise, the man took this piece, split it into two halves, ate one of them, and left the other for her.