Task: Program Execution
Input (English): 6017, 1949, V, 7817, 5531, 6755, 3637, T, g, M, 5415, Z, 5981, G, G, z, 7481
Output (English): 50583