Task: Program Execution
Input (English): 3, 10, ['E', '3449', '5751', '8309', '3817', 'N', '3779', '5121', '3715', 'w']
Output (English): w517312159773N718390381575