String s = "rtorcekess";
for (int i = 0; i < 9; i+=2)
  System.out.print(s.charAt(i));
System.out.print(" and ");
for (int i = 1; i < 11; i+=2)
  System.out.print(s.charAt(i));
System.out.print(" and water");