Three riflemen A,B, and C take turns shooting at a target. A shoots first, B second, and C third, after which the cycle repeats again with A, until one of the riflemen hits the target. Each shot hits the target with probability 1/2, independent of other shots. Find the probability A wins.