Task: Program Execution
Input (English): 2, 7, ['R', '2347', '1951', '9097', '1149', 'h', '6785', '2081', '7897', 'H']
Output (English): 5876h9411790915917432