Task: Program Execution
Input (English): 795, V, 2071, A, c, 3985, 3783, 7887, m
Output (English): 1, 3, 6, 7, 8