import java.io.PrintWriter;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) {

		try (Scanner scan = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out);) {
			char[] s = scan.next().toCharArray();

			Set<Character> set = new HashSet<Character>();
			for (int i = 0; i < s.length; i++) {
				set.add(s[i]);
			}

			out.println(set.size() == 1 ? "No" : "Yes");
			out.flush();
		}
	}
} import java.io.PrintWriter; PrintWriter java.io import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {

	public static void main(String[] args) {

		try (Scanner scan = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out);) {
			char[] s = scan.next().toCharArray();

			Set<Character> set = new HashSet<Character>();
			for (int i = 0; i < s.length; i++) {
				set.add(s[i]);
			}

			out.println(set.size() == 1 ? "No" : "Yes");
			out.flush();
		}
	}
} Main public static void main(String[] args) {

		try (Scanner scan = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out);) {
			char[] s = scan.next().toCharArray();

			Set<Character> set = new HashSet<Character>();
			for (int i = 0; i < s.length; i++) {
				set.add(s[i]);
			}

			out.println(set.size() == 1 ? "No" : "Yes");
			out.flush();
		}
	} main {

		try (Scanner scan = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out);) {
			char[] s = scan.next().toCharArray();

			Set<Character> set = new HashSet<Character>();
			for (int i = 0; i < s.length; i++) {
				set.add(s[i]);
			}

			out.println(set.size() == 1 ? "No" : "Yes");
			out.flush();
		}
	} try (Scanner scan = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out);) {
			char[] s = scan.next().toCharArray();

			Set<Character> set = new HashSet<Character>();
			for (int i = 0; i < s.length; i++) {
				set.add(s[i]);
			}

			out.println(set.size() == 1 ? "No" : "Yes");
			out.flush();
		} {
			char[] s = scan.next().toCharArray();

			Set<Character> set = new HashSet<Character>();
			for (int i = 0; i < s.length; i++) {
				set.add(s[i]);
			}

			out.println(set.size() == 1 ? "No" : "Yes");
			out.flush();
		} Scanner scan = new Scanner(System.in) Scanner scan = new Scanner(System.in) new Scanner(System.in) PrintWriter out = new PrintWriter(System.out) PrintWriter out = new PrintWriter(System.out) new PrintWriter(System.out) char[] s = scan.next().toCharArray(); s scan.next().toCharArray() scan.next().toCharArray scan.next() scan.next scan Set<Character> set = new HashSet<Character>(); set new HashSet<Character>() for (int i = 0; i < s.length; i++) {
				set.add(s[i]);
			} int i = 0; int i = 0; i 0 i < s.length i s.length s s.length i++ i++ i {
				set.add(s[i]);
			} {
				set.add(s[i]);
			} set.add(s[i]) set.add set s[i] s i out.println(set.size() == 1 ? "No" : "Yes") out.println out set.size() == 1 ? "No" : "Yes" set.size() == 1 set.size() set.size set 1 "No" "Yes" out.flush() out.flush out String[] args args public class Main {

	public static void main(String[] args) {

		try (Scanner scan = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out);) {
			char[] s = scan.next().toCharArray();

			Set<Character> set = new HashSet<Character>();
			for (int i = 0; i < s.length; i++) {
				set.add(s[i]);
			}

			out.println(set.size() == 1 ? "No" : "Yes");
			out.flush();
		}
	}
} public class Main {

	public static void main(String[] args) {

		try (Scanner scan = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out);) {
			char[] s = scan.next().toCharArray();

			Set<Character> set = new HashSet<Character>();
			for (int i = 0; i < s.length; i++) {
				set.add(s[i]);
			}

			out.println(set.size() == 1 ? "No" : "Yes");
			out.flush();
		}
	}
} Main
import java.io.PrintWriter;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) {

		try (Scanner scan = new Scanner(System.in); PrintWriter out = new PrintWriter(System.out);) {
			char[] s = scan.next().toCharArray();

			Set<Character> set = new HashSet<Character>();
			for (int i = 0; i < s.length; i++) {
				set.add(s[i]);
			}

			out.println(set.size() == 1 ? "No" : "Yes");
			out.flush();
		}
	}
}
