Task: Program Execution
Input (English): 7367, 3335, p, 4257, 5001, X, 9605, F, 127, 9303, 8159, m, n, N, p, a, X, P, 883, 2861, 2655, 9015
Output (English): 7367, 3335, 16, 4257, 5001, 24, 9605, 6, 127, 9303, 8159, 13, 14, 14, 16, 1, 24, 16, 883, 2861, 2655, 9015