Task: Program Execution
Input (English): 2, 4, ['Q', '3691', '5845', '4513', 'g']
Output (English): 315454851963