Task: Program Execution
Input (English): m, G, 4313, z, w, 3205, F
Output (English): 7518