Task: Program Execution
Input (English): 3137, F, m, J, S, V, 4441, 5525
Output (English): 2, 3, 4, 5, 6