Task: Program Execution
Input (English): j, r, 2603, 4165, 3163, 477, X, 1629
Output (English): 3, 4, 5, 6, 8