import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String words = sc.nextLine();
        int maxn = 0;
        int minn = words.length();
        for (int i = 0; i < words.length(); i++) {
            int count = 0;
            char c = words.charAt(i);
            for (int j = 0; j < words.length(); j++) {
                if (c == words.charAt(j)) {
                    count ++;
                }
            }
            if (count > maxn) {
                maxn = count;
            }
            if (count < minn) {
                minn = count;
            }
        }

        // 判断差是否为质数
        int num = maxn - minn;
        if (num < 2) {
            System.out.println("No Answer");
            System.out.println(0);
            return;
        }
        if (num == 2) {
            System.out.println("Lucky Word");
            System.out.println(num);
            return;
        }
        boolean flag = true;
        for (int i = 2; i < Math.sqrt(num); i++) {
            if (num % 2 == 0) {
                flag = false;
                break;
            }
        }
        if (flag) {
            System.out.println("Lucky Word");
            System.out.println(num);
        } else {
            System.out.println("No Answer");
            System.out.println(0);
        }
    }
}