Task: Program Execution
Input (English): 1651, 6371, 5197, 2499, 3315, 5261, 5213, r, 1149, g, f, V, 6071
Output (English): 8, 10, 11, 12