You are given a string s of length n.
A sequence of integers t is an index sequence if 1≤t_1<t_2<…<t_k≤n, where k is the length of t.
A string corresponding to an index sequence t is the the following string: s_t_1s_t_2…s_t_k. Note that it is always a subsequence of s.
You are given an index sequence. Find the lexicographically smallest string which corresponds to some index sequence which contains the given one as a subsequence.
The first line contains the string s consisting of n (1≤n≤5⋅105) lowercase English letters.
The second line contains a single integer k (1≤k≤n), length of t.
The third line contains k integers t_i (1≤t_i≤n). t is an index sequence.
Print a single string --- the answer to the problem.