No, but you've got the right idea as to how the riddle should be solved.