P19572 [HackerEarth] After obtaining a secret scroll, King Kala along with Commander in Chief Rajan is busy making war strategies. He has entrusted the job of making wartime communication ciphers on his mos
普及-
题目描述

After obtaining a secret scroll, King Kala along with Commander in Chief Rajan is busy making war strategies. He has entrusted the job of making wartime communication ciphers on his most two mosy trusted generals, Minister Rana and Minister Dude. Minister Rana comes up with the idea of using Fibonacci Strings as the cipher.

The Fibonacci string (consisting only of lower case characters) follows the pattern as shown below.

a b b c d f i n v i d l o z n m . . .

Minister Dude though wants the cipher to be more secure and thus decides the following strategy. He counts the frequency of the characters in a given range [L,R] in the Fibonacci String. With this, the term 'a' in the plain text is to be replaced with the most frequent term in the range [L,R]. The term ‘b’ in the plain text is to be replaced with the second most frequent term in the range and so on so as to generate the cipher. If two characters have the same frequency, the lexicographically smallest character comes first.

Help Minister Rana generate the cipher text using this method.

Input:

First line contains T, which is the number of test cases in the input.

The first line of each test case contains two space separated integers L and R denoting the range which is to be taken. The second line of each test case contains the string S (single word) which is the plain text to be enciphered.

Output:

Print the encrypted message in a separate line .

Constraints

1 ≤ T ≤ 10^4
0 ≤ L ≤ R ≤ 10^5
1 ≤ | S | ≤100

SAMPLE INPUT
2
0 4
abcd
1 9
abcd

SAMPLE OUTPUT
bacd
bicd

Explanation

For range [0,4] , the fibonacci string is a b b c d.
Here, ‘b’ occurs 2 times,and ‘a’,’c’,’d’ occurs once .
Thus the frequency order is
b a c d e f g h i j k l m n o p q r s t u v w x y z
So, for the input string “abcd”, the output should be “bacd”.

For the range [1,9] , the fibonacci string is b b c d f i n v i.
Thus the frequency order is
b i c d f n v a e g h j k l m o p q r s t u w x y z
So, for the input string “abcd”, the output should be “bicd”.

输入格式

见题面

输出格式

见题面

样例输入
50 376 827 kepotcmxqbwracuautssgbzlhvlzxmxb 607 927 ndsykskorboompvgufmxejouoigvvkffhuflli 503 529 eyirdsfezwnbiguhnyyzerjhephooezodekawsipurmcmugt 69 881 hsjyqkapieknhreliymiadvwcbgx 123 242 lwsrisvqmqwmyrhzoytxcobx 679 998 klsulo 34 705 sjptoakmww 366 739 sjnldwdsdxdgsvq 656 924 fzkhjydbclyxvukmibilxgavlohkho 730 785 uihcswcfweycsncckaqgedmjmgtxelnhco 237 448 vndapfluwoicbresqy 602 947 bkvffairdrbzfoellxdxsi 198 258 dzqqxam 418 946 ckhftlzvoiqifqgjnokillsygecqrxtqpqoqcsfs 839 857 nmdcrxwloqbxeyyengtvnethldghnlzkoir 393 519 oocqobtpfrvrfgotptxvqgzatewclk 245 880 fzuzmgiwetmiemxyarrxxpzulaxstxbwstrjqqhfcnr 413 877 lhokxnphsfkxbkkdkjgzagqoathsomdyqye 838 886 mygyfo 206 382 iopdhjagjkyrjezsuayqzwasoyaozqszabgjietsxyignez 312 436 sgvlfvpmckfwplogqcvsdpfxpupxfgivmxrdrlipajldlooy 188 458 cftpmxuvjh 84 626 ovcmgosscfusjoofdvhxpoofo 447 744 nmagubfffinfltfoajwosqgzwbmagvalvecjmtz 312 983 rnohhyslcraqthqd 768 788 cyvwkf 501 882 pudbnbhdbpcplnnvcxmkxajn 533 714 ggcdieq 700 806 pbcobmcwtkegqe 6 968 rozpossbiy 137 142 gsygkpcsiasjvafy 268 868 bnqvghqfmbpnubpeojijlbriwyva 221 815 ilrgjzwpfzojytqnerigfjmwjxwo 183 685 uwpgu 147 430 bjvfrqyrbrfeaqcrmmwgkflgtlraegwartisybklefmdxdqoic 116 889 oybcncatftxjceyzfxnfpaxih 317 816 eqsdqibarxfy 84 852 qbxwhxfcojuyigklqu 169 194 z 18 470 a 89 316 pug 11 886 oncqeyswbcjzrubjpzshlcvwwfbdyigrmgqolvddqmcn 343 481 vurkafimzgljikd 383 885 xgxfxwkzjguxctgejvimncljifpxvpllwazqxu 72 545 exkyskkqgnodhueoysr 795 951 gotjwqmkmyaweiitjnmyadfqewpnkfmnmvgffrexvszlfv 566 803 klvkbqtpagcvazacrhlrflgvdchgobuc 250 606 mlpztdyfyohjd 412 912 wqoijuxanmbeybjyfeedaukexgvqcaz 320 743 ddreef
样例输出
drf xbse cee wmbftcakmip cly jeviml uz jmnh c brbsvqexk