There are two bags, one of which contains three black and four white balls while the other contains four black and three white balls. A die is cast: if the face 1 or 3 turns up, a ball is taken from the first bag; and if any other face turns up, a ball is chosen from the second bag. Find the probability of choosing a black ball.