#include <iostream>
using namespace std;
int ss(int x)
{
int f=1;
for(int i=2;i*i<=x;i++)
if(x%i==0)
{f=0;break;}
return f;
}
string a;
int c[26]={0},hh=0,hh2=9999999;
int main()
{
cin>>a;
for(int x=0;x<a.size();x++)
{
++c[a[x]-'a'];
}
for(int x=0;x<26;x++)
{
cout<<c[x]<<endl;
}
for(int x=0;x<26;x++)
{
if(c[x]!=-1&&hh<c[x])
{
hh=c[x];
}
if(c[x]!=-1&&hh2>c[x]&&c[x]!=0)
{
hh2=c[x];
}
}
if(ss(hh-hh2)==1&&hh-hh2!=0&&hh-hh2!=1)
{
cout<<"Lucky Word"<<endl;
cout<<hh-hh2;
}
else
{
cout<<"No Answer"<<endl;
cout<<"0";
}
}
输出没错啊