Task: Program Execution
Input (English): r, 393, 365, d, a
Output (English): 3, 5, 6, 9