import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author EDGE
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastReader in = new FastReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskAtcoder158A solver = new TaskAtcoder158A();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskAtcoder158A {
        public void solve(int testNumber, FastReader in, PrintWriter out) {

            char[] a = in.nextLine().toCharArray();
            int x = 0, y = 0;
            for (char t : a
            ) {
                if (t == 'A')
                    x++;
                else y++;

            }
            if (x != 0 && y != 0)
                out.println("Yes");
            else
                out.println("No");

        }

    }

    static class FastReader {
        BufferedReader br;

        public FastReader(InputStream inputStream) {
            br = new BufferedReader(new
                    InputStreamReader(inputStream));
        }

        public String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    }
}
 import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.io.IOException; IOException java.io import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.InputStream; InputStream java.io public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastReader in = new FastReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskAtcoder158A solver = new TaskAtcoder158A();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskAtcoder158A {
        public void solve(int testNumber, FastReader in, PrintWriter out) {

            char[] a = in.nextLine().toCharArray();
            int x = 0, y = 0;
            for (char t : a
            ) {
                if (t == 'A')
                    x++;
                else y++;

            }
            if (x != 0 && y != 0)
                out.println("Yes");
            else
                out.println("No");

        }

    }

    static class FastReader {
        BufferedReader br;

        public FastReader(InputStream inputStream) {
            br = new BufferedReader(new
                    InputStreamReader(inputStream));
        }

        public String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    }
} Main public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastReader in = new FastReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskAtcoder158A solver = new TaskAtcoder158A();
        solver.solve(1, in, out);
        out.close();
    } main {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastReader in = new FastReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskAtcoder158A solver = new TaskAtcoder158A();
        solver.solve(1, in, out);
        out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out FastReader in = new FastReader(inputStream); in new FastReader(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) TaskAtcoder158A solver = new TaskAtcoder158A(); solver new TaskAtcoder158A() solver.solve(1, in, out) solver.solve solver 1 in out out.close() out.close out String[] args args static class TaskAtcoder158A {
        public void solve(int testNumber, FastReader in, PrintWriter out) {

            char[] a = in.nextLine().toCharArray();
            int x = 0, y = 0;
            for (char t : a
            ) {
                if (t == 'A')
                    x++;
                else y++;

            }
            if (x != 0 && y != 0)
                out.println("Yes");
            else
                out.println("No");

        }

    } TaskAtcoder158A public void solve(int testNumber, FastReader in, PrintWriter out) {

            char[] a = in.nextLine().toCharArray();
            int x = 0, y = 0;
            for (char t : a
            ) {
                if (t == 'A')
                    x++;
                else y++;

            }
            if (x != 0 && y != 0)
                out.println("Yes");
            else
                out.println("No");

        } solve {

            char[] a = in.nextLine().toCharArray();
            int x = 0, y = 0;
            for (char t : a
            ) {
                if (t == 'A')
                    x++;
                else y++;

            }
            if (x != 0 && y != 0)
                out.println("Yes");
            else
                out.println("No");

        } char[] a = in.nextLine().toCharArray(); a in.nextLine().toCharArray() in.nextLine().toCharArray in.nextLine() in.nextLine in int x = 0 x 0 y = 0; y 0 for (char t : a
            ) {
                if (t == 'A')
                    x++;
                else y++;

            } char t a {
                if (t == 'A')
                    x++;
                else y++;

            } {
                if (t == 'A')
                    x++;
                else y++;

            } if (t == 'A')
                    x++;
                else y++; t == 'A' t 'A' x++ x y++ y if (x != 0 && y != 0)
                out.println("Yes");
            else
                out.println("No"); x != 0 && y != 0 x != 0 x 0 y != 0 y 0 out.println("Yes") out.println out "Yes" out.println("No") out.println out "No" int testNumber testNumber FastReader in in PrintWriter out out static class FastReader {
        BufferedReader br;

        public FastReader(InputStream inputStream) {
            br = new BufferedReader(new
                    InputStreamReader(inputStream));
        }

        public String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    } FastReader BufferedReader br; br public FastReader(InputStream inputStream) {
            br = new BufferedReader(new
                    InputStreamReader(inputStream));
        } FastReader {
            br = new BufferedReader(new
                    InputStreamReader(inputStream));
        } br = new BufferedReader(new
                    InputStreamReader(inputStream)) br new BufferedReader(new
                    InputStreamReader(inputStream)) InputStream inputStream inputStream public String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        } nextLine {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        } String str = ""; str "" try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } IOException e {
                e.printStackTrace();
            } e.printStackTrace() e.printStackTrace e {
                str = br.readLine();
            } str = br.readLine() str br.readLine() br.readLine br return str; str public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastReader in = new FastReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskAtcoder158A solver = new TaskAtcoder158A();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskAtcoder158A {
        public void solve(int testNumber, FastReader in, PrintWriter out) {

            char[] a = in.nextLine().toCharArray();
            int x = 0, y = 0;
            for (char t : a
            ) {
                if (t == 'A')
                    x++;
                else y++;

            }
            if (x != 0 && y != 0)
                out.println("Yes");
            else
                out.println("No");

        }

    }

    static class FastReader {
        BufferedReader br;

        public FastReader(InputStream inputStream) {
            br = new BufferedReader(new
                    InputStreamReader(inputStream));
        }

        public String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    }
} public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastReader in = new FastReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskAtcoder158A solver = new TaskAtcoder158A();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskAtcoder158A {
        public void solve(int testNumber, FastReader in, PrintWriter out) {

            char[] a = in.nextLine().toCharArray();
            int x = 0, y = 0;
            for (char t : a
            ) {
                if (t == 'A')
                    x++;
                else y++;

            }
            if (x != 0 && y != 0)
                out.println("Yes");
            else
                out.println("No");

        }

    }

    static class FastReader {
        BufferedReader br;

        public FastReader(InputStream inputStream) {
            br = new BufferedReader(new
                    InputStreamReader(inputStream));
        }

        public String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author EDGE
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        FastReader in = new FastReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskAtcoder158A solver = new TaskAtcoder158A();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskAtcoder158A {
        public void solve(int testNumber, FastReader in, PrintWriter out) {

            char[] a = in.nextLine().toCharArray();
            int x = 0, y = 0;
            for (char t : a
            ) {
                if (t == 'A')
                    x++;
                else y++;

            }
            if (x != 0 && y != 0)
                out.println("Yes");
            else
                out.println("No");

        }

    }

    static class FastReader {
        BufferedReader br;

        public FastReader(InputStream inputStream) {
            br = new BufferedReader(new
                    InputStreamReader(inputStream));
        }

        public String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    }
}

