Task: Program Execution
Input (English): S, g, 707, 5359, 3371
Output (English): 19, 7, 707, 5359, 3371