fork download
  1. import java.io.*;
  2.  
  3. public class Main {
  4.  
  5. public static void main(String[] args) throws IOException {
  6.  
  7.  
  8. String str = br.readLine();
  9. if(str.lastIndexOf("\"") - str.indexOf("\"") <= 1)
  10. bw.write("CE");
  11. else {
  12. String newStr = str.substring(str.indexOf("\"") + 1, str.lastIndexOf("\""));
  13. if(newStr.trim().length() == 0)
  14. bw.write("CE");
  15. else
  16. bw.write(newStr);
  17. }
  18.  
  19. bw.flush();
  20. bw.close();
  21. }
  22.  
  23.  
  24. }
Success #stdin #stdout 0.11s 52956KB
stdin
a"a"
stdout
a