import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

class Main {

    public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(""));
            Set<String> stations = new HashSet<>();

            for (String s : input) {
                stations.add(s);
            }

            String result = "Yes";
            if (stations.size() == 1) {
                result = "No";
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util import java.util.HashSet; HashSet java.util import java.util.List; List java.util import java.util.Set; Set java.util class Main {

    public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(""));
            Set<String> stations = new HashSet<>();

            for (String s : input) {
                stations.add(s);
            }

            String result = "Yes";
            if (stations.size() == 1) {
                result = "No";
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }
} Main public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(""));
            Set<String> stations = new HashSet<>();

            for (String s : input) {
                stations.add(s);
            }

            String result = "Yes";
            if (stations.size() == 1) {
                result = "No";
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    } main {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(""));
            Set<String> stations = new HashSet<>();

            for (String s : input) {
                stations.add(s);
            }

            String result = "Yes";
            if (stations.size() == 1) {
                result = "No";
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    } try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(""));
            Set<String> stations = new HashSet<>();

            for (String s : input) {
                stations.add(s);
            }

            String result = "Yes";
            if (stations.size() == 1) {
                result = "No";
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } IOException | NumberFormatException e {
            e.printStackTrace();
            System.exit(0);
        } e.printStackTrace() e.printStackTrace e System.exit(0) System.exit System 0 catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        } final Exception e {
            e.printStackTrace();
            System.exit(0);
        } e.printStackTrace() e.printStackTrace e System.exit(0) System.exit System 0 {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(""));
            Set<String> stations = new HashSet<>();

            for (String s : input) {
                stations.add(s);
            }

            String result = "Yes";
            if (stations.size() == 1) {
                result = "No";
            }

            System.out.println(result);
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) List<String> input = Arrays.asList(br.readLine().split("")); input Arrays.asList(br.readLine().split("")) Arrays.asList Arrays br.readLine().split("") br.readLine().split br.readLine() br.readLine br "" Set<String> stations = new HashSet<>(); stations new HashSet<>() for (String s : input) {
                stations.add(s);
            } String s input {
                stations.add(s);
            } {
                stations.add(s);
            } stations.add(s) stations.add stations s String result = "Yes"; result "Yes" if (stations.size() == 1) {
                result = "No";
            } stations.size() == 1 stations.size() stations.size stations 1 {
                result = "No";
            } result = "No" result "No" System.out.println(result) System.out.println System.out System System.out result String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

class Main {

    public static void main(String[] args) throws Exception {

        try {

            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

            List<String> input = Arrays.asList(br.readLine().split(""));
            Set<String> stations = new HashSet<>();

            for (String s : input) {
                stations.add(s);
            }

            String result = "Yes";
            if (stations.size() == 1) {
                result = "No";
            }

            System.out.println(result);
        } catch (IOException | NumberFormatException e) {
            e.printStackTrace();
            System.exit(0);
        } catch (final Exception e) {
            e.printStackTrace();
            System.exit(0);
        }
    }
}