Task: Program Execution
Input (English): g, 4819, J, Y, 9131, 501, b, 5867
Output (English): 1, 3, 4, 7