Task: Program Execution
Input (English): p, 3959, 8943, 1025, m, 4397, 1239, Z, 1137, G, 8819, h
Output (English): 1, 5, 8, 10, 12