Task: Program Execution
Input (English): L, H, 355, 9369, 7779, 2209, q, 2987, 6561, 8019
Output (English): 355, 9369, 7779, 2209, 2987, 6561, 8019