A bag contains coins. It is known that n of these coins have a head on both sides where as the rest of the coins are fair. A coin is picked up at random form the bag and is tossed. If the probability that the results in a head is then the value of n is