fork download
  1. import java.util.Scanner;
  2.  
  3. public class Main{
  4. public static void main(String[] args){
  5. Scanner sc = new Scanner(System.in);
  6. String s = sc.nextLine().toLowerCase();
  7. System.out.println((s.indexOf("be") != -1)? "YES":"NO");
  8. }
  9. }
Success #stdin #stdout 0.14s 56592KB
stdin
To b or not to b that is the question
stdout
NO