import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			char[] a = in.toCharArray();
			 System.out.println(a[0]==a[1] && a[1]==a[2] ? "No" : "Yes");
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			char[] a = in.toCharArray();
			 System.out.println(a[0]==a[1] && a[1]==a[2] ? "No" : "Yes");
		}
	}
} Main public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			char[] a = in.toCharArray();
			 System.out.println(a[0]==a[1] && a[1]==a[2] ? "No" : "Yes");
		}
	} main {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			char[] a = in.toCharArray();
			 System.out.println(a[0]==a[1] && a[1]==a[2] ? "No" : "Yes");
		}
	} try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			char[] a = in.toCharArray();
			 System.out.println(a[0]==a[1] && a[1]==a[2] ? "No" : "Yes");
		} {

			String in = br.readLine();
			char[] a = in.toCharArray();
			 System.out.println(a[0]==a[1] && a[1]==a[2] ? "No" : "Yes");
		} BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in)) new BufferedReader(
				new InputStreamReader(System.in)) String in = br.readLine(); in br.readLine() br.readLine br char[] a = in.toCharArray(); a in.toCharArray() in.toCharArray in System.out.println(a[0]==a[1] && a[1]==a[2] ? "No" : "Yes") System.out.println System.out System System.out a[0]==a[1] && a[1]==a[2] ? "No" : "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 "No" "Yes" String[] args args public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			char[] a = in.toCharArray();
			 System.out.println(a[0]==a[1] && a[1]==a[2] ? "No" : "Yes");
		}
	}
} public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			char[] a = in.toCharArray();
			 System.out.println(a[0]==a[1] && a[1]==a[2] ? "No" : "Yes");
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{
	public static void main(String[] args) throws IOException {
		try (BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in))) {

			String in = br.readLine();
			char[] a = in.toCharArray();
			 System.out.println(a[0]==a[1] && a[1]==a[2] ? "No" : "Yes");
		}
	}
}