Task: Program Execution
Input (English): 6247, 1133, 7221, 7861, G, 9877, E
Output (English): 5, 7