/* package whatever; // don't place package name! */
importjava.util.*;
importjava.lang.*;
importjava.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class output {publicstaticvoid main(String args[]){String a ="hello i love java";System.out.println(a.indexOf('i')+" "+a.indexOf('o')+" "+a.lastIndexOf('i')+" "+a.lastIndexOf('o'));}}