import java.io.*;
import java.util.*;

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() {
		byte[] cc = sc.next().getBytes();
		println(cc[0] == cc[1] && cc[1] == cc[2] ? "No" : "Yes");
	}
} import java.io.*; io.* java import java.util.*; util.* java 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() {
		byte[] cc = sc.next().getBytes();
		println(cc[0] == cc[1] && cc[1] == cc[2] ? "No" : "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() {
		byte[] cc = sc.next().getBytes();
		println(cc[0] == cc[1] && cc[1] == cc[2] ? "No" : "Yes");
	} main {
		byte[] cc = sc.next().getBytes();
		println(cc[0] == cc[1] && cc[1] == cc[2] ? "No" : "Yes");
	} byte[] cc = sc.next().getBytes(); cc sc.next().getBytes() sc.next().getBytes sc.next() sc.next sc println(cc[0] == cc[1] && cc[1] == cc[2] ? "No" : "Yes") println cc[0] == cc[1] && cc[1] == cc[2] ? "No" : "Yes" cc[0] == cc[1] && cc[1] == cc[2] cc[0] == cc[1] cc[0] cc 0 cc[1] cc 1 cc[1] == cc[2] cc[1] cc 1 cc[2] cc 2 "No" "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() {
		byte[] cc = sc.next().getBytes();
		println(cc[0] == cc[1] && cc[1] == cc[2] ? "No" : "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() {
		byte[] cc = sc.next().getBytes();
		println(cc[0] == cc[1] && cc[1] == cc[2] ? "No" : "Yes");
	}
} Main
import java.io.*;
import java.util.*;

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() {
		byte[] cc = sc.next().getBytes();
		println(cc[0] == cc[1] && cc[1] == cc[2] ? "No" : "Yes");
	}
}
