There are two bags, one of which contains 3 black and 4 white balls while the other contains 4 black and 3 white balls. A die is thrown. If it shows up 1 or 3, a ball is taken from the 1st bag; but it shows up any other number, a ball is chosen from the second bag. Find the probability of choosing a black ball.