Personally: I would still write to each person, not just the CEO. To me, it is always a good thing to do, and I wouldn't like the possibility of them getting together to discuss you and the CEO says I got a lovely thank you note from her and everyone else says/realizes that only the CEO got one.