#include<bits/stdc++.h>
#include<algorithm>
#include<cmath>
using namespace std;
int main(){
string s;
cin>>s;
int maxn=1,minn=100,sum=1;
for(int i=0;i<s.size();i++){
for(int j=i+1;j<s.size();j++){
if(s[i]==s[j]){
sum++;
}
maxn=max(maxn,sum);
minn=min(minn,sum);
}
sum=1;
}
sum=maxn-minn;
int a=0;
while(sum>2){
for(int i=1;i<=sum;i++){
if(sum%i==0) a++;
}
}
if(a==2) cout<<"Lucky Word"<<endl<<maxn-minn;
if(sum==0||sum==1) cout<<"No Answer"<<endl<<"0";
else cout<<"No Answer"<<endl<<"0";
return 0;
}