import java.io.*;
import java.util.*;

public class Main {
    static Character[] toCharacterArray(String s) {
        if (s == null) {
            return null;
        }
        int len = s.length();
        Character[] array = new Character[len];
        for (int i = 0; i < len; i++) {
            array[i] = new Character(s.charAt(i));
        }
        return array;
    }

    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String arr = reader.readLine();

        Set<Character> S = new HashSet<Character>(Arrays.asList(toCharacterArray(arr)));
        System.out.println(1 < S.size() ? "Yes" : "No");
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
    static Character[] toCharacterArray(String s) {
        if (s == null) {
            return null;
        }
        int len = s.length();
        Character[] array = new Character[len];
        for (int i = 0; i < len; i++) {
            array[i] = new Character(s.charAt(i));
        }
        return array;
    }

    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String arr = reader.readLine();

        Set<Character> S = new HashSet<Character>(Arrays.asList(toCharacterArray(arr)));
        System.out.println(1 < S.size() ? "Yes" : "No");
    }
} Main static Character[] toCharacterArray(String s) {
        if (s == null) {
            return null;
        }
        int len = s.length();
        Character[] array = new Character[len];
        for (int i = 0; i < len; i++) {
            array[i] = new Character(s.charAt(i));
        }
        return array;
    } toCharacterArray {
        if (s == null) {
            return null;
        }
        int len = s.length();
        Character[] array = new Character[len];
        for (int i = 0; i < len; i++) {
            array[i] = new Character(s.charAt(i));
        }
        return array;
    } if (s == null) {
            return null;
        } s == null s null {
            return null;
        } return null; null int len = s.length(); len s.length() s.length s Character[] array = new Character[len]; array new Character[len] len for (int i = 0; i < len; i++) {
            array[i] = new Character(s.charAt(i));
        } int i = 0; int i = 0; i 0 i < len i len i++ i++ i {
            array[i] = new Character(s.charAt(i));
        } {
            array[i] = new Character(s.charAt(i));
        } array[i] = new Character(s.charAt(i)) array[i] array i new Character(s.charAt(i)) return array; array String s s public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String arr = reader.readLine();

        Set<Character> S = new HashSet<Character>(Arrays.asList(toCharacterArray(arr)));
        System.out.println(1 < S.size() ? "Yes" : "No");
    } main {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String arr = reader.readLine();

        Set<Character> S = new HashSet<Character>(Arrays.asList(toCharacterArray(arr)));
        System.out.println(1 < S.size() ? "Yes" : "No");
    } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String arr = reader.readLine(); arr reader.readLine() reader.readLine reader Set<Character> S = new HashSet<Character>(Arrays.asList(toCharacterArray(arr))); S new HashSet<Character>(Arrays.asList(toCharacterArray(arr))) System.out.println(1 < S.size() ? "Yes" : "No") System.out.println System.out System System.out 1 < S.size() ? "Yes" : "No" 1 < S.size() 1 S.size() S.size S "Yes" "No" String[] args args public class Main {
    static Character[] toCharacterArray(String s) {
        if (s == null) {
            return null;
        }
        int len = s.length();
        Character[] array = new Character[len];
        for (int i = 0; i < len; i++) {
            array[i] = new Character(s.charAt(i));
        }
        return array;
    }

    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String arr = reader.readLine();

        Set<Character> S = new HashSet<Character>(Arrays.asList(toCharacterArray(arr)));
        System.out.println(1 < S.size() ? "Yes" : "No");
    }
} public class Main {
    static Character[] toCharacterArray(String s) {
        if (s == null) {
            return null;
        }
        int len = s.length();
        Character[] array = new Character[len];
        for (int i = 0; i < len; i++) {
            array[i] = new Character(s.charAt(i));
        }
        return array;
    }

    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String arr = reader.readLine();

        Set<Character> S = new HashSet<Character>(Arrays.asList(toCharacterArray(arr)));
        System.out.println(1 < S.size() ? "Yes" : "No");
    }
} Main
import java.io.*;
import java.util.*;

public class Main {
    static Character[] toCharacterArray(String s) {
        if (s == null) {
            return null;
        }
        int len = s.length();
        Character[] array = new Character[len];
        for (int i = 0; i < len; i++) {
            array[i] = new Character(s.charAt(i));
        }
        return array;
    }

    public static void main(String[] args) throws Exception {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String arr = reader.readLine();

        Set<Character> S = new HashSet<Character>(Arrays.asList(toCharacterArray(arr)));
        System.out.println(1 < S.size() ? "Yes" : "No");
    }
}