import java.io.*;
import java.util.*;
public class Main{
public static void main (String[] args) throws Exception{
//Fill your code
Scanner sc =new Scanner(System.in);
System.out.println("Enter the first string :");
String first= sc.nextLine();
System.out.println("Enter the second string :");
String second= sc.nextLine();
System.out.println("Substring : "+first.substring(3));
System.out.println("The character at 3rd position in the second string is : " +second.charAt(3));
System.out.println("Are string 1 and string 2 equal? : "+first.equalsIgnoreCase(second));
System.out.println("Concatenated string : "+first.concat(" "+second));
}
}