Task: Program Execution
Input (English): A, 9775, 5867, n, 1329, 5973
Output (English): 22944