Task: Program Execution
Input (English): 21, J, c, M, C
Output (English): 4