package zhiZuo4;

public class Last {

    public static void main(String[] args) 
    {
        String A = "jasd";
        String C = A.replace("sd","0");
        int D = C.length();
        System.out.println((C.lastIndexOf("0")==(D-1)));
    }

}