Task: Program Execution
Input (English): 7301, m, 9057, 4507, G
Output (English): 20865