A gamber has in his pocket the fair coin and two-headed coin. He picks one of the coins at a random, and when he flips it, it shows heads.
a) Find out the probability tha it is fair coin?
b) Assume that he flips the same coin the second time and again it shows heads. Now find out the probability that it is a fair coin?