Your are given a string s and an integer k. Find the lexicographically minimal subsequence of s which length is k.
The first line contains a string s (1≤∣s∣≤106). It consists of lowercase Latin letters.
The second line contains an integer k (1≤k≤∣s∣) --- the length of the resulting subsequence.
Output the lexicographically minimal subsequence of s which length is k.
String s_p_1s_p_2…s_p_k(1≤p_1<p_2<⋯<p_k≤∣s∣) is called a subsequence of string s.
String x=x_1x_2…x_k is lexicographically less than string y=y_1y_2…y_k, if there exists such number i (1≤i≤k), that x_1=y_1,x_2=y_2,…,x_i−1=y_i−1 and x_i<y_i. Characters in strings are compared as their ASCII codes.