Task: Program Execution
Input (English): 749, 1499, 3811, 4889, 2007, z, z, H, 1089, 3439, 5035, g, g, 8025, p, 549, x, 3877, X, S
Output (English): 1, 2, 3, 4, 5, 9, 10, 11, 14, 16, 18