import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        // int N = Integer.parseInt(s.next());
        String S = s.next();
        List<String> ret = Arrays.asList(S.split("")).stream().distinct().collect(Collectors.toList());
        System.out.println(ret.size() == 1 ? "No" : "Yes");
    }
} import java.util.Arrays; Arrays java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util import java.util.stream.Collectors; Collectors java.util.stream public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        // int N = Integer.parseInt(s.next());
        String S = s.next();
        List<String> ret = Arrays.asList(S.split("")).stream().distinct().collect(Collectors.toList());
        System.out.println(ret.size() == 1 ? "No" : "Yes");
    }
} Main public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        // int N = Integer.parseInt(s.next());
        String S = s.next();
        List<String> ret = Arrays.asList(S.split("")).stream().distinct().collect(Collectors.toList());
        System.out.println(ret.size() == 1 ? "No" : "Yes");
    } main {
        Scanner s = new Scanner(System.in);
        // int N = Integer.parseInt(s.next());
        String S = s.next();
        List<String> ret = Arrays.asList(S.split("")).stream().distinct().collect(Collectors.toList());
        System.out.println(ret.size() == 1 ? "No" : "Yes");
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) String S = s.next(); S s.next() s.next s List<String> ret = Arrays.asList(S.split("")).stream().distinct().collect(Collectors.toList()); ret Arrays.asList(S.split("")).stream().distinct().collect(Collectors.toList()) Arrays.asList(S.split("")).stream().distinct().collect Arrays.asList(S.split("")).stream().distinct() Arrays.asList(S.split("")).stream().distinct Arrays.asList(S.split("")).stream() Arrays.asList(S.split("")).stream Arrays.asList(S.split("")) Arrays.asList Arrays S.split("") S.split S "" Collectors.toList() Collectors.toList Collectors System.out.println(ret.size() == 1 ? "No" : "Yes") System.out.println System.out System System.out ret.size() == 1 ? "No" : "Yes" ret.size() == 1 ret.size() ret.size ret 1 "No" "Yes" String[] args args public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        // int N = Integer.parseInt(s.next());
        String S = s.next();
        List<String> ret = Arrays.asList(S.split("")).stream().distinct().collect(Collectors.toList());
        System.out.println(ret.size() == 1 ? "No" : "Yes");
    }
} public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        // int N = Integer.parseInt(s.next());
        String S = s.next();
        List<String> ret = Arrays.asList(S.split("")).stream().distinct().collect(Collectors.toList());
        System.out.println(ret.size() == 1 ? "No" : "Yes");
    }
} Main
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

public class Main {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        // int N = Integer.parseInt(s.next());
        String S = s.next();
        List<String> ret = Arrays.asList(S.split("")).stream().distinct().collect(Collectors.toList());
        System.out.println(ret.size() == 1 ? "No" : "Yes");
    }
}