Task: Program Execution
Input (English): N, 7789, Y, 1767, y, 1953, 5847, m, Y, f, 6875, 849, 7021, K, T
Output (English): 2, 4, 6, 7, 11, 12, 13