You have a skewed coin, but you don't know how much. It can come up heads more times than tails, or the other way around; all you know is that its bias is fixed.
You can throw it as many times as you want, but you cannot use any other coin or other random mechanism. You must ultimately produce a perfectly fair result: heads or tails, each with probability exactly 1/2.
How would you do it?