Task: Program Execution
Input (English): 5823, 5005, 2625, 5989, 1843, V, r, z, 6307, a, w
Output (English): 1, 2, 3, 4, 5, 9