Task: Program Execution
Input (English): l, p, n, 137, 63, 371, x, p, 361, p
Output (English): 1, 3, 6, 7