/* 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
	{
		// your code goes here
		String a = "hello" + " world!";
		String b = "hello world!";
		boolean compare = (a == b); // This return true
		System.out.println(compare);
		a = "hello";
		b = "hel" + "lo";
		compare = (a == b); // This return false
		System.out.println(compare);
		a = "Bye";
		a += " bye!";
		b = "Bye bye!";
		compare = (a == b); // This return false
		System.out.println(compare);
		a = "Bye bye!";
		b = "Bye";
		b += " bye!";
		compare = (a == b); // This return false
		System.out.println(compare);
	}
}