happy new year the year 2020 know Year Gyeongja 경자년 gyeongjanyeon Korea where come Lets briefly look Gapja system traditionally Korea yearsThere sequences n string s_1 s_2 s_3 ldot s_n m string t_1 t_2 t_3 ldot t_m these string contain lowercase letter there duplicate stringslet concatenation string x y string obtain write string x y right change order for example concatenation string code force stre codeforcesThe year 1 concatenation string s_1 t_1 when year increase concatenate string order respective sequence if stre currently end sequence string sequenceFor example n 3 m 4 s b c t d e f g follow table denote result year name Note name year repeat you give sequence string size n m q query for query give current year could find corresponding give year accord Gapja system