Task: Program Execution
Input (English): 387, 355, j, r, g
Output (English): 3, 5, 7, 8