/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		String s = "this is a long sentence";
	    int i = s.indexOf('i');    // the first 'i' in String is at index 2
	    int j = s.indexOf("long"); // the index of the first occurrence of "long" in s is 10
	    int k = s.indexOf('z');    // k is -1 because 'z' was not found in String s
	    int h = s.indexOf("LoNg"); // h is -1 because "LoNg" was not found in String s
	    
	    System.out.println(i);
	    System.out.println(j);
	    System.out.println(k);
	    System.out.println(h);
	}
}