Task: Program Execution
Input (English): J, d, 2647, 8531, x, X, g, D, H
Output (English): J, d, x, X, g, D, H