def check_number(num):
    flag='Lucky Word'
    if num>2:
        for i in range(2,num):
            if num%i==0:
                flag='No Answer'
                break
            else:
                continue
    elif num==2:
        flag='Lucky Word'
    else:
        flag='No Answer'
    return flag

word=input()
dic={}
for a in word:
    dic[a]=0
for a in dic.keys():
    for b in word:
        if b==a:
            dic[a]+=1
        else:
            continue
maxn=max(dic.values())
minn=min(dic.values())
number=maxn-minn
flag=check_number(number)
if flag=='Lucky Word':
    print(flag)
    print(number)
else:
    print(flag)
    print(0)