Task: Program Execution
Input (English): b, p, 6131, 6529, 1611, 5013, F, 8601, 6333, 5607, 2615, 9443, T
Output (English): 1, 2, 7, 13