Task: Program Execution
Input (English): G, P, 4339
Output (English): 7, 16, 4339