#include<bits/stdc++.h>
using namespace std;
char str[1000];
int a[10000];
bool check(int x){
if(x==0||x==1) return false;
if(x==2) return true;
for(int i=2;i<x;i++){
if(x/i*i==x) return false;
}
return true;
}
int main(){
cin>>str;
int l=strlen(str);}
memset(a,0,l);
for(int i=0;i<l;i++){
for(int j=0;j<l;j++){
if(str[i]==str[j]) a[i]++;
}
}
sort(a,a+l);
int d=a[l-1]-a[0];
if(check(d)) cout<<"Lucky Word"<<endl<<d;
else cout<<"No Anser"<<endl<<0;
}