Task: Program Execution
Input (English): 3285, 1175, C, 5759, P, 5517, 495, 3337, 6345, G, 7381, 9029, 1053, n, 8041, m, 4951, 5543
Output (English): 13