Task: Program Execution
Input (English): 5511, 6857, p, 6985, 6457, X, 1871, w, 7777, t, t, 6359, n
Output (English): 1, 2, 4, 5, 7, 9, 12