Task: Program Execution
Input (English): p, 1511, R, D, M, 6585, 7251, h, 8583, 837, 1379, K, Z, 7165, 3861, 2241, 1113, 5087, 3719, r
Output (English): 1, 3, 4, 5, 8, 12, 13, 20