#include<bits/stdc++.h>
using namespace std;
bool sh(int y)
{
if(y==1)return false;
if(y==2)return true;
for(int i=2;i*i<=y;i++)
if(y%i==0)return false;
return true;
}
int main()
{
int max=0,min=101,d,z[27]={0},k=0;
string a;
cin>>a;
for(int i=0;i<=a.size();i++)
{
z[a[i]-'a']++;
}
for(int i=0;i<=26;i++)
{
//cout<<z[i]<<"\n";
if(z[i]>max)
{
max=z[i];
}
if(z[i]<min&&z[i]!=0)
{
min=z[i];
}
}
if(max==min)
{
if(sh(max))
{
cout<<"Lucky Word\n";
}
else
{
cout<<"No Answer\n";
}
cout<<max;
}
else
{
if(sh(max-min))
{
cout<<"Lucky Word\n";
}
else
{
cout<<"No Answer\n";
}
cout<<max-min;
}
return 0;
}