import java.util.Scanner;

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    String station = sc.nextLine();
    String station1 = station.substring(0,1);
    String station2 = station.substring(1,2);
    String station3 = station.substring(2, 3);

    if(station1.equals(station2) && station2.equals(station3)) {
    	System.out.println("No");
    } else {
    	System.out.println("Yes");
    }

  }
} import java.util.Scanner; Scanner java.util public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    String station = sc.nextLine();
    String station1 = station.substring(0,1);
    String station2 = station.substring(1,2);
    String station3 = station.substring(2, 3);

    if(station1.equals(station2) && station2.equals(station3)) {
    	System.out.println("No");
    } else {
    	System.out.println("Yes");
    }

  }
} Main public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    String station = sc.nextLine();
    String station1 = station.substring(0,1);
    String station2 = station.substring(1,2);
    String station3 = station.substring(2, 3);

    if(station1.equals(station2) && station2.equals(station3)) {
    	System.out.println("No");
    } else {
    	System.out.println("Yes");
    }

  } main {
    Scanner sc = new Scanner(System.in);
    String station = sc.nextLine();
    String station1 = station.substring(0,1);
    String station2 = station.substring(1,2);
    String station3 = station.substring(2, 3);

    if(station1.equals(station2) && station2.equals(station3)) {
    	System.out.println("No");
    } else {
    	System.out.println("Yes");
    }

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String station = sc.nextLine(); station sc.nextLine() sc.nextLine sc String station1 = station.substring(0,1); station1 station.substring(0,1) station.substring station 0 1 String station2 = station.substring(1,2); station2 station.substring(1,2) station.substring station 1 2 String station3 = station.substring(2, 3); station3 station.substring(2, 3) station.substring station 2 3 if(station1.equals(station2) && station2.equals(station3)) {
    	System.out.println("No");
    } else {
    	System.out.println("Yes");
    } station1.equals(station2) && station2.equals(station3) station1.equals(station2) station1.equals station1 station2 station2.equals(station3) station2.equals station2 station3 {
    	System.out.println("No");
    } System.out.println("No") System.out.println System.out System System.out "No" {
    	System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    String station = sc.nextLine();
    String station1 = station.substring(0,1);
    String station2 = station.substring(1,2);
    String station3 = station.substring(2, 3);

    if(station1.equals(station2) && station2.equals(station3)) {
    	System.out.println("No");
    } else {
    	System.out.println("Yes");
    }

  }
} public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    String station = sc.nextLine();
    String station1 = station.substring(0,1);
    String station2 = station.substring(1,2);
    String station3 = station.substring(2, 3);

    if(station1.equals(station2) && station2.equals(station3)) {
    	System.out.println("No");
    } else {
    	System.out.println("Yes");
    }

  }
} Main
import java.util.Scanner;

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    String station = sc.nextLine();
    String station1 = station.substring(0,1);
    String station2 = station.substring(1,2);
    String station3 = station.substring(2, 3);

    if(station1.equals(station2) && station2.equals(station3)) {
    	System.out.println("No");
    } else {
    	System.out.println("Yes");
    }

  }
}