Fingers on buzzers teams, it's time for the Missing Vowels Round. In this game, we've taken famous words, phrases, or sayings, removed the vowels, and then re-spaced the consonants.
So for example, for the category "Sports for nerds," the clue might be,
Alice, Bob, and Cindy are training for their appearance on Only Connect (their team name is "The Github Heatmappers"), and in particular they would like to train for the Missing Vowels Round. They ask for your help in creating a program that allows them to train.
As a formalization of the rules given above, in the Missing Vowels Round, the following transformation is applied to a string:
The first line of input contains the string $$$s$$$, which may contain whitespaces.
The second line of input contains a single integer $$$i$$$.
If $$$\mathcal{L}(s)$$$ has fewer than $$$i$$$ elements, output the phrase "out of bounds" (without the quotes; note it is in all-lowercase), Otherwise, output the $$$i$$$th element in $$$\mathcal{L}(s)$$$.
$$$$$$\begin{align*}
&\begin{array}{|l|} \hline \text{Constraints For All Subtasks} \\ \hline 1 \leq i \leq 10^{18} \\ 1 \leq |s| \leq 2 \times 10^5 \\ \text{$s$ consists of upper and lowercase letters, punctuation }\mathtt{,.!?}\text{ and spaces.} \\ \text{$s$ does not begin or end in a space, and it has no two consecutive spaces.} \\ \text{$s$ contains at least one consonant.} \\ \hline \end{array}\\
&\begin{array}{|c|c|l|} \hline \text{Subtask} & \text{Points} & \text{Constraints} \\ \hline 1 & \mathbf{40} & |s| \leq 15 \\ \hline 2 & \mathbf{40} & i \leq 2 \times 10^5 \\ \hline 3 & \mathbf{20} & \text{No further constraints.} \\ \hline \end{array}\\
\end{align*}$$$$$$
NOI.PH 3
NP H
Alice, Bob, and Cindy 344
LC BB ND CNDY
Who Lives, Who Dies, Who Tells Your Story 1000000000000000000
out of bounds
!B 1
B
Comparison operators like < are actually defined on strings in almost all programming languages. Try it!
They are defined in a way consistent with "dictionary ordering". Suppose we have two strings $$$s$$$ and $$$t$$$ such that $$$s \neq t$$$.
So, for example, "LIL MAN" (without the quotes) comes before LILAC because the two strings first differ at their fourth character, and there, the space precedes A in ASCII ordering.