Task: Program Execution
Input (English): 4, 12, ['A', '9489', 'S', '2207', '2847', '9749', '3241', '1861', '4077', '4605', '6637', '4859']
Output (English): 958473665064770416811423947974827022