/* 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
	{
		for ( int x = -99; x < 100; x += 1 ) {
            System.out.println( "------" );
            System.out.printf( "1. x = %d, n = %d%n", x, x+2 - (x&1) );
            System.out.printf( "2. x = %d, n = %d%n", x, (x+2)&(-2) );
            System.out.printf( "3. x = %d, n = %d%n", x, x+2-x%2 );
            System.out.printf( "4. x = %d, n = %d%n", x, (x/2+1)*2 );
        }
	}
}