Task: Program Execution
Input (English): j, d, g, 405, 167, t
Output (English): 0, 1, 4, 5, 6, 7