Task: Program Execution
Input (English): 5471, n, A, L, S, M
Output (English): 1