What Is Your Handle

Sort N distinct handles by ASCII dictionary order and print the I-th one.

Easy2SortingStringImplementationInterviewNo attempts yetTime limit1sMemory limit512 MB

Problem

On online judges and in programming contests, each participant is known by an ID, also called a handle. Many people reuse the same handle across sites, and a famous user's handle is sometimes used like a nickname.

Sangmin uses the handle qilip. However, Hyeonjeong only remembers that it starts with q and ends with p, so she calls him qp. Determined to defend his identity, Sangmin wants to imprint his real handle on her.

Hyeonjeong is bad at matching names to faces, but she has one peculiar talent: she remembers the rank of every handle she knows once those handles are arranged in dictionary order. Given the list of handles she knows and an integer II, find the handle ranked II-th in dictionary order.

Input

The first line contains NN, the number of handles Hyeonjeong knows, and II, the rank to find (1IN1001 \le I \le N \le 100).

Each of the following NN lines contains one handle in random order. Every handle consists of lowercase English letters and digits only, with length between 11 and 2020 inclusive. All handles are distinct.

Output

Print the II-th handle in dictionary order on one line.

Dictionary order here is defined as follows. Digits come before letters, smaller digits come first, and earlier letters come first. If one string is a prefix of another, the shorter one comes first.