# 1.輸入小寫單詞並轉為列表
a=input()# 輸單詞:aASSDSSDFssscvbn
b=list(a.lower()) # 轉為小寫字母再變成列表賦值給b
# print(b)
# 2.統計字母出現的個數
counts={
} # 定義空字典
for word in b:# 2行代碼統計次數
counts[word] = counts.get(word,0) + 1
print(counts)
# 最大值減最小值 counts.values() 獲取數值
distance = max(counts.values()) - min(counts.values())
print(distance)
#判斷質數:大於1的數,除1與本身無法被整除
for i in range(2,distance):
if distance % i ==0:
print("No Answer")
print(0)
break
else:
print("Lucky Word")
print(distance)
break