import java.util.Scanner;

public class Main {

	public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int x1	= Integer.parseInt( scaner.next());
		int x2	= Integer.parseInt( scaner.next());

		System.out.print( Math.multiplyExact( x1, x2 ) + " " );

		System.out.println( (x1 * 2) + (x2 * 2) );
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int x1	= Integer.parseInt( scaner.next());
		int x2	= Integer.parseInt( scaner.next());

		System.out.print( Math.multiplyExact( x1, x2 ) + " " );

		System.out.println( (x1 * 2) + (x2 * 2) );
	}

} Main public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int x1	= Integer.parseInt( scaner.next());
		int x2	= Integer.parseInt( scaner.next());

		System.out.print( Math.multiplyExact( x1, x2 ) + " " );

		System.out.println( (x1 * 2) + (x2 * 2) );
	} main {

		Scanner scaner = new Scanner( System.in );

		int x1	= Integer.parseInt( scaner.next());
		int x2	= Integer.parseInt( scaner.next());

		System.out.print( Math.multiplyExact( x1, x2 ) + " " );

		System.out.println( (x1 * 2) + (x2 * 2) );
	} Scanner scaner = new Scanner( System.in ); scaner new Scanner( System.in ) int x1	= Integer.parseInt( scaner.next()); x1 Integer.parseInt( scaner.next()) Integer.parseInt Integer scaner.next() scaner.next scaner int x2	= Integer.parseInt( scaner.next()); x2 Integer.parseInt( scaner.next()) Integer.parseInt Integer scaner.next() scaner.next scaner System.out.print( Math.multiplyExact( x1, x2 ) + " " ) System.out.print System.out System System.out Math.multiplyExact( x1, x2 ) + " " Math.multiplyExact( x1, x2 ) Math.multiplyExact Math x1 x2 " " System.out.println( (x1 * 2) + (x2 * 2) ) System.out.println System.out System System.out (x1 * 2) + (x2 * 2) (x1 * 2) x1 2 (x2 * 2) x2 2 String[] args args public class Main {

	public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int x1	= Integer.parseInt( scaner.next());
		int x2	= Integer.parseInt( scaner.next());

		System.out.print( Math.multiplyExact( x1, x2 ) + " " );

		System.out.println( (x1 * 2) + (x2 * 2) );
	}

} public class Main {

	public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int x1	= Integer.parseInt( scaner.next());
		int x2	= Integer.parseInt( scaner.next());

		System.out.print( Math.multiplyExact( x1, x2 ) + " " );

		System.out.println( (x1 * 2) + (x2 * 2) );
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int x1	= Integer.parseInt( scaner.next());
		int x2	= Integer.parseInt( scaner.next());

		System.out.print( Math.multiplyExact( x1, x2 ) + " " );

		System.out.println( (x1 * 2) + (x2 * 2) );
	}

}