Task: Program Execution
Input (English): 8167 1455 403 3165 5021 H 1265 1383 7359 d 3177 6781 1999 h 6425 3329 3491 L L 5971 L 6095 u 2831 5573
Output (English): 8167, 1455, 403, 3165, 5021, 8, 1265, 1383, 7359, 4, 3177, 6781, 1999, 8, 6425, 3329, 3491, 12, 12, 5971, 12, 6095, 21, 2831, 5573