Task: Program Execution
Input (English): 977, 5795, 1011, 1841, 2941, H, L, L, 8271, r, 5601, 2169, s, c
Output (English): 6, 7, 8, 10, 13, 14