Task: Program Execution
Input (English): t, 247, d, w, x, 411
Output (English): 1, 2, 4, 7