import java.io.*;
import java.util.*;
import java.lang.String;
import java.util.Arrays;

import static java.lang.Integer.min;
import static java.lang.Integer.parseInt;

public class Main extends PrintWriter {
    Main() { super(System.out, true); }
    Scanner sc = new Scanner(System.in);
    public static void main(String[] $) {
        Main o = new Main(); o.main(); o.flush();
    }

    void main(){

        char []A = new char[3];
        String B = sc.next();
        for(int i = 0; i < 3; i++){
            A[i] = B.charAt(i);

        }
        if(A[0] == A[1] && A[1] == A[2]){
            print("No");
        }
        else
        {
            print("Yes");
        }


    }
} import java.io.*; io.* java import java.util.*; util.* java import java.lang.String; String java.lang import java.util.Arrays; Arrays java.util import static java.lang.Integer.min; import static java.lang.Integer.min; import static java.lang.Integer.min; import static java.lang.Integer.parseInt; import static java.lang.Integer.parseInt; import static java.lang.Integer.parseInt; public class Main extends PrintWriter {
    Main() { super(System.out, true); }
    Scanner sc = new Scanner(System.in);
    public static void main(String[] $) {
        Main o = new Main(); o.main(); o.flush();
    }

    void main(){

        char []A = new char[3];
        String B = sc.next();
        for(int i = 0; i < 3; i++){
            A[i] = B.charAt(i);

        }
        if(A[0] == A[1] && A[1] == A[2]){
            print("No");
        }
        else
        {
            print("Yes");
        }


    }
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Main() { super(System.out, true); } Main { super(System.out, true); } super(System.out, true) super System.out System System.out true public static void main(String[] $) {
        Main o = new Main(); o.main(); o.flush();
    } main {
        Main o = new Main(); o.main(); o.flush();
    } Main o = new Main(); o new Main() o.main() o.main o o.flush() o.flush o String[] $ $ void main(){

        char []A = new char[3];
        String B = sc.next();
        for(int i = 0; i < 3; i++){
            A[i] = B.charAt(i);

        }
        if(A[0] == A[1] && A[1] == A[2]){
            print("No");
        }
        else
        {
            print("Yes");
        }


    } main {

        char []A = new char[3];
        String B = sc.next();
        for(int i = 0; i < 3; i++){
            A[i] = B.charAt(i);

        }
        if(A[0] == A[1] && A[1] == A[2]){
            print("No");
        }
        else
        {
            print("Yes");
        }


    } char []A = new char[3]; A new char[3] 3 String B = sc.next(); B sc.next() sc.next sc for(int i = 0; i < 3; i++){
            A[i] = B.charAt(i);

        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            A[i] = B.charAt(i);

        } {
            A[i] = B.charAt(i);

        } A[i] = B.charAt(i) A[i] A i B.charAt(i) B.charAt B i if(A[0] == A[1] && A[1] == A[2]){
            print("No");
        }
        else
        {
            print("Yes");
        } A[0] == A[1] && A[1] == A[2] A[0] == A[1] A[0] A 0 A[1] A 1 A[1] == A[2] A[1] A 1 A[2] A 2 {
            print("No");
        } print("No") print "No" {
            print("Yes");
        } print("Yes") print "Yes" PrintWriter public class Main extends PrintWriter {
    Main() { super(System.out, true); }
    Scanner sc = new Scanner(System.in);
    public static void main(String[] $) {
        Main o = new Main(); o.main(); o.flush();
    }

    void main(){

        char []A = new char[3];
        String B = sc.next();
        for(int i = 0; i < 3; i++){
            A[i] = B.charAt(i);

        }
        if(A[0] == A[1] && A[1] == A[2]){
            print("No");
        }
        else
        {
            print("Yes");
        }


    }
} public class Main extends PrintWriter {
    Main() { super(System.out, true); }
    Scanner sc = new Scanner(System.in);
    public static void main(String[] $) {
        Main o = new Main(); o.main(); o.flush();
    }

    void main(){

        char []A = new char[3];
        String B = sc.next();
        for(int i = 0; i < 3; i++){
            A[i] = B.charAt(i);

        }
        if(A[0] == A[1] && A[1] == A[2]){
            print("No");
        }
        else
        {
            print("Yes");
        }


    }
} Main
import java.io.*;
import java.util.*;
import java.lang.String;
import java.util.Arrays;

import static java.lang.Integer.min;
import static java.lang.Integer.parseInt;

public class Main extends PrintWriter {
    Main() { super(System.out, true); }
    Scanner sc = new Scanner(System.in);
    public static void main(String[] $) {
        Main o = new Main(); o.main(); o.flush();
    }

    void main(){

        char []A = new char[3];
        String B = sc.next();
        for(int i = 0; i < 3; i++){
            A[i] = B.charAt(i);

        }
        if(A[0] == A[1] && A[1] == A[2]){
            print("No");
        }
        else
        {
            print("Yes");
        }


    }
}