Task: Program Execution
Input (English): 1471, 9701, e, V, 1897, E, 1457
Output (English): 1, 2, 5, 7