Task: Program Execution
Input (English): F, n, 3789, m, X, n, S, 2917, 5753, 6917, o, 8263, g, n, 9311, N, Q, 5395, a, 3221
Output (English): 12