Task: Program Execution
Input (English): D, 1841, 1785, h, 6951, 5305, R, T, u, G, Z
Output (English): 2, 3, 5, 6