Task: Program Execution
Input (English): g, 1087, 4241, 691, U, B, 645, P, 1603, 7853, 8687, 5807, C, W, 1713, 871, 5597, g, 3003
Output (English): 1, 5, 6, 8, 13, 14, 18