import java.util.Scanner;
 
public class Main {
 
	public static final MyScanner in = new MyScanner();
 
	public static void main(String[] args) {
 
		char[] s = in.nextLine().toCharArray();
		System.out.println(s[0] == s[1] && s[0] == s[2] ? "No" : "Yes");
	}

	public static class MyScanner{
		Scanner sc = new Scanner(System.in);
		String nextLine() {return sc.nextLine();}
		String next() {return sc.next();}
		int nextInt() {return Integer.valueOf(sc.next());}
		long nextLong() { return Long.valueOf(sc.next());}
	}

} import java.util.Scanner; Scanner java.util public class Main {
 
	public static final MyScanner in = new MyScanner();
 
	public static void main(String[] args) {
 
		char[] s = in.nextLine().toCharArray();
		System.out.println(s[0] == s[1] && s[0] == s[2] ? "No" : "Yes");
	}

	public static class MyScanner{
		Scanner sc = new Scanner(System.in);
		String nextLine() {return sc.nextLine();}
		String next() {return sc.next();}
		int nextInt() {return Integer.valueOf(sc.next());}
		long nextLong() { return Long.valueOf(sc.next());}
	}

} Main public static final MyScanner in = new MyScanner(); in new MyScanner() public static void main(String[] args) {
 
		char[] s = in.nextLine().toCharArray();
		System.out.println(s[0] == s[1] && s[0] == s[2] ? "No" : "Yes");
	} main {
 
		char[] s = in.nextLine().toCharArray();
		System.out.println(s[0] == s[1] && s[0] == s[2] ? "No" : "Yes");
	} char[] s = in.nextLine().toCharArray(); s in.nextLine().toCharArray() in.nextLine().toCharArray in.nextLine() in.nextLine in System.out.println(s[0] == s[1] && s[0] == s[2] ? "No" : "Yes") System.out.println System.out System System.out s[0] == s[1] && s[0] == s[2] ? "No" : "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 "No" "Yes" String[] args args public static class MyScanner{
		Scanner sc = new Scanner(System.in);
		String nextLine() {return sc.nextLine();}
		String next() {return sc.next();}
		int nextInt() {return Integer.valueOf(sc.next());}
		long nextLong() { return Long.valueOf(sc.next());}
	} MyScanner Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String nextLine() {return sc.nextLine();} nextLine {return sc.nextLine();} return sc.nextLine(); sc.nextLine() sc.nextLine sc String next() {return sc.next();} next {return sc.next();} return sc.next(); sc.next() sc.next sc int nextInt() {return Integer.valueOf(sc.next());} nextInt {return Integer.valueOf(sc.next());} return Integer.valueOf(sc.next()); Integer.valueOf(sc.next()) Integer.valueOf Integer sc.next() sc.next sc long nextLong() { return Long.valueOf(sc.next());} nextLong { return Long.valueOf(sc.next());} return Long.valueOf(sc.next()); Long.valueOf(sc.next()) Long.valueOf Long sc.next() sc.next sc public class Main {
 
	public static final MyScanner in = new MyScanner();
 
	public static void main(String[] args) {
 
		char[] s = in.nextLine().toCharArray();
		System.out.println(s[0] == s[1] && s[0] == s[2] ? "No" : "Yes");
	}

	public static class MyScanner{
		Scanner sc = new Scanner(System.in);
		String nextLine() {return sc.nextLine();}
		String next() {return sc.next();}
		int nextInt() {return Integer.valueOf(sc.next());}
		long nextLong() { return Long.valueOf(sc.next());}
	}

} public class Main {
 
	public static final MyScanner in = new MyScanner();
 
	public static void main(String[] args) {
 
		char[] s = in.nextLine().toCharArray();
		System.out.println(s[0] == s[1] && s[0] == s[2] ? "No" : "Yes");
	}

	public static class MyScanner{
		Scanner sc = new Scanner(System.in);
		String nextLine() {return sc.nextLine();}
		String next() {return sc.next();}
		int nextInt() {return Integer.valueOf(sc.next());}
		long nextLong() { return Long.valueOf(sc.next());}
	}

} Main
import java.util.Scanner;
 
public class Main {
 
	public static final MyScanner in = new MyScanner();
 
	public static void main(String[] args) {
 
		char[] s = in.nextLine().toCharArray();
		System.out.println(s[0] == s[1] && s[0] == s[2] ? "No" : "Yes");
	}

	public static class MyScanner{
		Scanner sc = new Scanner(System.in);
		String nextLine() {return sc.nextLine();}
		String next() {return sc.next();}
		int nextInt() {return Integer.valueOf(sc.next());}
		long nextLong() { return Long.valueOf(sc.next());}
	}

}