The computation of this problem is easy and will not be discussed. We shall only focus on the difficult spot of this problem. It is in the input instead of output. That is, the A is for reading in the first character, 4X to skip the next four spaces, and 2I5 for reading in the deposit and payment values. Let us examine the first input line.
Similar reason holds true for a payment line.
For a line with C or c in the first position, both I5 s will cause the same problem. So, the above format just does not work. A very good analysis. This is the big question. To solve this problem, let us read a line anyway.