Task: Program Execution
Input (English): 127, c, 365, 307
Output (English): 0, 1, 2, 3, 5, 6, 7