Task: Program Execution
Input (English): V, 1835, h, A, a, 1861, 3231, K, O, k, m, 5987, 7393, 1683, T, N, 999, 535, U, V, u, 3515, B, G
Output (English): V, h, A, a, K, O, k, m, T, N, U, V, u, B, G, 1835, 1861, 3231, 5987, 7393, 1683, 999, 535, 3515