
import java.util.Scanner;


public class Main {

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		int height = sc.nextInt();
		int width = sc.nextInt();

		long area = (long)height * width;
		long length = (long)height*2 +(long)width*2;
		System.out.println(area +" "+length);

		sc.close();
	}

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

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		int height = sc.nextInt();
		int width = sc.nextInt();

		long area = (long)height * width;
		long length = (long)height*2 +(long)width*2;
		System.out.println(area +" "+length);

		sc.close();
	}

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

		Scanner sc = new Scanner(System.in);

		int height = sc.nextInt();
		int width = sc.nextInt();

		long area = (long)height * width;
		long length = (long)height*2 +(long)width*2;
		System.out.println(area +" "+length);

		sc.close();
	} main {

		Scanner sc = new Scanner(System.in);

		int height = sc.nextInt();
		int width = sc.nextInt();

		long area = (long)height * width;
		long length = (long)height*2 +(long)width*2;
		System.out.println(area +" "+length);

		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int height = sc.nextInt(); height sc.nextInt() sc.nextInt sc int width = sc.nextInt(); width sc.nextInt() sc.nextInt sc long area = (long)height * width; area (long)height * width (long)height width long length = (long)height*2 +(long)width*2; length (long)height*2 +(long)width*2 (long)height*2 (long)height 2 (long)width*2 (long)width 2 System.out.println(area +" "+length) System.out.println System.out System System.out area +" "+length area +" "+length area " " length sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		int height = sc.nextInt();
		int width = sc.nextInt();

		long area = (long)height * width;
		long length = (long)height*2 +(long)width*2;
		System.out.println(area +" "+length);

		sc.close();
	}

} public class Main {

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		int height = sc.nextInt();
		int width = sc.nextInt();

		long area = (long)height * width;
		long length = (long)height*2 +(long)width*2;
		System.out.println(area +" "+length);

		sc.close();
	}

} Main

import java.util.Scanner;


public class Main {

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		int height = sc.nextInt();
		int width = sc.nextInt();

		long area = (long)height * width;
		long length = (long)height*2 +(long)width*2;
		System.out.println(area +" "+length);

		sc.close();
	}

}