Task: Program Execution
Input (English): 5147, 8221, 6127, 8467, 3869, z, Z, W, 8985, 4365, 3919, Z, M, 3077, 5437, 507, 2813, 3111, 7015, 5971
Output (English): 6, 7, 8, 12, 13