Task: Program Execution
Input (English): X, 405, B, 5299, w, C, x, 7781, 6659, K, c, W
Output (English): 1, 3, 5, 6, 7, 10, 11, 12