Die A has 4 red and 2 white faces, whereas die B has 2 red and 4 white faces. A coin is flipped once. If it shows a head, the game continues by throwing die A; if it shows tail, then die B is to be used. If the probability that die A is used is 3233 when it is given that red turns up every time in first n throws, then find the value of n.