/* 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 swapAndPrint(int a, int b) {
		System.out.println("Before:\t" + a + " " + b);
		a = a + b;
		b = a - b;
		a = a - b;
		System.out.println("After:\t" + a + " " + b);
	}
	public static void main (String[] args) throws java.lang.Exception
	{
		System.out.println("Min-Min:");
		swapAndPrint(Integer.MIN_VALUE, Integer.MIN_VALUE);
		System.out.println("Min-Max:");
		swapAndPrint(Integer.MIN_VALUE, Integer.MAX_VALUE);
		System.out.println("Max-Min:");
		swapAndPrint(Integer.MAX_VALUE, Integer.MIN_VALUE);
		System.out.println("Max-Max");
		swapAndPrint(Integer.MAX_VALUE, Integer.MAX_VALUE);
		System.out.println("0-Min:");
		swapAndPrint(0, Integer.MIN_VALUE);
	}
}