Two dice are rolled once. Find the probability of getting such numbers on two dice, whose product is a perfect square.
OR
A game consists of tossing a coin 3 times and noting its outcomes each time. Hanif wins if he gets three heads or three tails, and loses otherwise. Calculate the probability that Hanif will lose the game.