

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		String ans = "Yes";

		if(s.charAt(0) == s.charAt(1) && s.charAt(1) == s.charAt(2)) {
			ans = "No";
		}

		System.out.println(ans);

		scanner.close();

	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		String ans = "Yes";

		if(s.charAt(0) == s.charAt(1) && s.charAt(1) == s.charAt(2)) {
			ans = "No";
		}

		System.out.println(ans);

		scanner.close();

	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		String ans = "Yes";

		if(s.charAt(0) == s.charAt(1) && s.charAt(1) == s.charAt(2)) {
			ans = "No";
		}

		System.out.println(ans);

		scanner.close();

	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		String ans = "Yes";

		if(s.charAt(0) == s.charAt(1) && s.charAt(1) == s.charAt(2)) {
			ans = "No";
		}

		System.out.println(ans);

		scanner.close();

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String s = scanner.next(); s scanner.next() scanner.next scanner String ans = "Yes"; ans "Yes" if(s.charAt(0) == s.charAt(1) && s.charAt(1) == s.charAt(2)) {
			ans = "No";
		} s.charAt(0) == s.charAt(1) && s.charAt(1) == s.charAt(2) s.charAt(0) == s.charAt(1) s.charAt(0) s.charAt s 0 s.charAt(1) s.charAt s 1 s.charAt(1) == s.charAt(2) s.charAt(1) s.charAt s 1 s.charAt(2) s.charAt s 2 {
			ans = "No";
		} ans = "No" ans "No" System.out.println(ans) System.out.println System.out System System.out ans scanner.close() scanner.close scanner String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		String ans = "Yes";

		if(s.charAt(0) == s.charAt(1) && s.charAt(1) == s.charAt(2)) {
			ans = "No";
		}

		System.out.println(ans);

		scanner.close();

	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		String ans = "Yes";

		if(s.charAt(0) == s.charAt(1) && s.charAt(1) == s.charAt(2)) {
			ans = "No";
		}

		System.out.println(ans);

		scanner.close();

	}

} Main


import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		String ans = "Yes";

		if(s.charAt(0) == s.charAt(1) && s.charAt(1) == s.charAt(2)) {
			ans = "No";
		}

		System.out.println(ans);

		scanner.close();

	}

}
