Task: Program Execution
Input (English): 5439, m, 7269, q, 7305, n
Output (English): 20013