Task: Program Execution
Input (English): c, S, T, 1905, 8523, 1239, D, 3137
Output (English): 4, 5, 6, 8