Task: Program Execution
Input (English): E, P, 361, d, 5307, Y
Output (English): 5, 16, 361, 4, 5307, 25