import java.util.Scanner;

class Main {
	public static void main(String[] args) {

	    Scanner sc = new Scanner(System.in);
	    String S = sc.next();
	    char[] s = new char[3];

	    for (int i = 0; i < 3; i++) {
	    	s[i] = S.charAt(i);
	    }

	    if (s[0] == s[1] && s[0] == s[2]) {
	    	System.out.println("No");
	    } else {
	    	System.out.println("Yes");
	    }
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {

	    Scanner sc = new Scanner(System.in);
	    String S = sc.next();
	    char[] s = new char[3];

	    for (int i = 0; i < 3; i++) {
	    	s[i] = S.charAt(i);
	    }

	    if (s[0] == s[1] && s[0] == s[2]) {
	    	System.out.println("No");
	    } else {
	    	System.out.println("Yes");
	    }
	}
} Main public static void main(String[] args) {

	    Scanner sc = new Scanner(System.in);
	    String S = sc.next();
	    char[] s = new char[3];

	    for (int i = 0; i < 3; i++) {
	    	s[i] = S.charAt(i);
	    }

	    if (s[0] == s[1] && s[0] == s[2]) {
	    	System.out.println("No");
	    } else {
	    	System.out.println("Yes");
	    }
	} main {

	    Scanner sc = new Scanner(System.in);
	    String S = sc.next();
	    char[] s = new char[3];

	    for (int i = 0; i < 3; i++) {
	    	s[i] = S.charAt(i);
	    }

	    if (s[0] == s[1] && s[0] == s[2]) {
	    	System.out.println("No");
	    } else {
	    	System.out.println("Yes");
	    }
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc char[] s = new char[3]; s new char[3] 3 for (int i = 0; i < 3; i++) {
	    	s[i] = S.charAt(i);
	    } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
	    	s[i] = S.charAt(i);
	    } {
	    	s[i] = S.charAt(i);
	    } s[i] = S.charAt(i) s[i] s i S.charAt(i) S.charAt S i if (s[0] == s[1] && s[0] == s[2]) {
	    	System.out.println("No");
	    } else {
	    	System.out.println("Yes");
	    } s[0] == s[1] && s[0] == s[2] s[0] == s[1] s[0] s 0 s[1] s 1 s[0] == s[2] s[0] s 0 s[2] s 2 {
	    	System.out.println("No");
	    } System.out.println("No") System.out.println System.out System System.out "No" {
	    	System.out.println("Yes");
	    } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {

	    Scanner sc = new Scanner(System.in);
	    String S = sc.next();
	    char[] s = new char[3];

	    for (int i = 0; i < 3; i++) {
	    	s[i] = S.charAt(i);
	    }

	    if (s[0] == s[1] && s[0] == s[2]) {
	    	System.out.println("No");
	    } else {
	    	System.out.println("Yes");
	    }
	}
}