Task: Program Execution
Input (English): F, K, K, 6347, W
Output (English): 1, 2, 3, 5