Task: Program Execution
Input (English): M, 8291, 9793, 7527, 9533, 3321, 1567, d, G, 2397, 2845, g, 4227, 8545
Output (English): 4