Task: Program Execution
Input (English): 899, 1721, 9467, 473, G, 1927, 151, X, 397, 9901, D
Output (English): 3