Task: Program Execution
Input (English): 8645, Z, 8827, j, 9945, 2737, P
Output (English): 2, 4, 7