Task: Program Execution
Input (English): 51, 53, 367, 13, m, 411, w
Output (English): 1, 3, 4, 5, 6, 7