It was clever of you to guess.
You were being clever with your guess.