The ATP molecule always loses the phosphate group furthest away from the ribose molcule first, to form ADP (adenosine diphosphate). This is due to the stability of the molecule. It then loses the next phosphate on the end to form AMP (adenosine monophosphate) and then the next.