But, as someone mentioned, if the coin comes tails you should answer with another coin flip, not "yes".
https://en.wikipedia.org/wiki/Randomized_response
Reply on news.ycombinator.com