Use python to solve
There are 3 children(their names are A,B,C). A has 50 candies, B has 43 candies, C has 13 candies. Now they want to play a game.Start from A, each person break all his candies (so far he holds) into 3 parts, keeping one part for hisself and give other two parts to others, He eat the reaminder candies. In this way, at the end of the game. How many candies A, B and C has?
What I have tried:
I tried using python-for loop but I end up getting incorrect response