Task: Program Execution
Input (English): c, 1229, T, P, 1823
Output (English): 3, 1229, 20, 16, 1823