Task: Program Execution
Input (English): p, 287, 349, 171, k, 315, 241, d, 69, w, 371
Output (English): 1, 2, 3, 4, 5, 6, 7, 8, 9