Task: Program Execution
Input (English): 69, m, q, 51
Output (English): 1, 5, 6, 9