Task: Program Execution
Input (English): 5225, 4421, g, 6881, G, 3649, 6629, D
Output (English): 3, 5, 8