Solve the programming task below in a Python markdown code block.
Chef Palin, as his name suggests, is always very interested in palindromic strings. Recently, he made a pretty interesting discovery on palindromes and that made him feel really Lucky. He came across something known as Lucky Palindromes. He defines a string as being a lucky palindrome if it is a palindrome containing the string "lucky" as a substring. As always, now he wants to turn every string he comes across into a lucky palindrome. Being a chef, he is a man of patience and creativity, so he knows the operation of replacing any character of the string with any other character very well and he can perform this action infinitely many times. He wants you to write a program that can help him convert a given string to a lucky palindrome using the minimum number of operations and if several such lucky palindromes are possible, then output the lexicographically smallest one.

------ Input Format ------ 

The first line contains a single integer T ≤ 100 the number of testcases. The following T lines each contain a string of length ≤ 1000 and only containing characters 'a'-'z'.

------ Output Format ------ 

For each line of testcase, your program should output on a single line, the required lucky palindrome along with the minimum number of operations, both separated by a single space. If there is no lucky palindrome possible, then just output "unlucky" in a single line.

----- Sample Input 1 ------ 
3
laubcdkey
luckycodechef
aaaaaaaa
----- Sample Output 1 ------ 
luckykcul 8
luckycocykcul 6
unlucky