#include<bits/stdc++.h>
using namespace std;
int a[27],len;
int mn=20000,mx=-20000;
string s;
int main(){
cin >> s;
len = s.size();
for(int i=0; i<=len-1; i++){
a[s[i] - 'a']++;
}
for(int i=0; i<=25; i++){
if(a[i] < mn && a[i] > 0) mn = a[i];
if(a[i] > mx && a[i] > 0) mx = a[i];
}
int c = mx - mn;
if (c == 0 || c == 1){
cout << "No Answer" << endl;
cout << 0 << endl;
return 0;
}
for(int i=2; i*i<=len; i++){
if(c%i == 0 && c != 2){
cout << "No Answer" << endl;
cout << 0 << endl;
return 0;
}
}
cout << "Lucky Word" << endl;
cout << c << endl;
return 0;
}