import java.io.IOException; import java.util.Arrays; import java.util.Comparator; import java.util.InputMismatchException; import java.util.LinkedList; import java.util.List; import java.util.TreeMap; public class Main { boolean[] prime; TreeMap map; int dp(int[] a) { if (a.length == 1) { return 1; } if (map.containsKey(a)) { return map.get(a); } int n = a.length; int res = -1; for (int i = 0; i < n; i++) { if (i != 0 && a[i - 1] == a[i]) continue; for (int j = 1; j <= a[i]; j++) { int[] next = reflesh(a, i, j); if (dp(next) == -1) { res = 1; } } } map.put(a, res); return res; } int[] reflesh(int[] a, int k, int t) { int n = a.length; if (a[k] == t) n--; int[] res = new int[n]; int id = 0; for (int i = 0; i < a.length; i++) { if (i != k) { res[id++] = a[i]; } else if (0 < a[i] - t) { res[id++] = a[i] - t; } } return res; } void run() { MyScanner sc = new MyScanner(); int MAX = 100_000_000 + 1; prime = new boolean[MAX]; Arrays.fill(prime, true); prime[0] = prime[1] = false; for (int i = 0; i * i <= MAX; i++) { if (prime[i]) { for (int j = i * i; j < MAX; j += i) { prime[j] = false; } } } List list = new LinkedList(); for (int i = 0; i * i <= MAX; i++) { if (prime[i]) { list.add(i); } } int n = sc.nextInt(); List div = new LinkedList(); for (Integer I : list) { int cnt = 0; while (n % I == 0) { cnt++; n /= I; } if (0 < cnt) { div.add(cnt); } if (n == 1) { break; } } if (1 < n) { div.add(1); } int[] s = new int[div.size()]; int id = 0; for (Integer I : div) { s[id++] = I; } Arrays.sort(s); map = new TreeMap(new Comparator() { @Override public int compare(int[] o1, int[] o2) { int n = o1.length; if (n != o2.length) { return n - o2.length; } for (int i = 0; i < n; i++) { if (o1[i] != o2[i]) { return o1[i] - o2[i]; } } return 0; } }); System.out.println(dp(s) > 0 ? "Alice" : "Bob"); } public static void main(String[] args) { new Main().run(); } public void mapDebug(int[][] a) { System.out.println("--------map display---------"); for (int i = 0; i < a.length; i++) { for (int j = 0; j < a[i].length; j++) { System.out.printf("%3d ", a[i][j]); } System.out.println(); } System.out.println("----------------------------" + '\n'); } class MyScanner { int read() { try { return System.in.read(); } catch (IOException e) { throw new InputMismatchException(); } } boolean isSpaceChar(int c) { return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } boolean isEndline(int c) { return c == '\n' || c == '\r' || c == -1; } int nextInt() { return Integer.parseInt(next()); } int[] nextIntArray(int n) { int[] array = new int[n]; for (int i = 0; i < n; i++) array[i] = nextInt(); return array; } long nextLong() { return Long.parseLong(next()); } long[] nextLongArray(int n) { long[] array = new long[n]; for (int i = 0; i < n; i++) array[i] = nextLong(); return array; } double nextDouble() { return Double.parseDouble(next()); } double[] nextDoubleArray(int n) { double[] array = new double[n]; for (int i = 0; i < n; i++) array[i] = nextDouble(); return array; } String next() { int c = read(); while (isSpaceChar(c)) c = read(); StringBuilder res = new StringBuilder(); do { res.appendCodePoint(c); c = read(); } while (!isSpaceChar(c)); return res.toString(); } String[] nextStringArray(int n) { String[] array = new String[n]; for (int i = 0; i < n; i++) array[i] = next(); return array; } String nextLine() { int c = read(); while (isEndline(c)) c = read(); StringBuilder res = new StringBuilder(); do { res.appendCodePoint(c); c = read(); } while (!isEndline(c)); return res.toString(); } } }