import java.util.Scanner;

public class Main {

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int w = sc.nextInt();
		int l = sc.nextInt();
		int product = w * l;
		int around = 2 * (w + l);
		System.out.println(product + " " + around);
		
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int w = sc.nextInt();
		int l = sc.nextInt();
		int product = w * l;
		int around = 2 * (w + l);
		System.out.println(product + " " + around);
		
	}
} Main public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int w = sc.nextInt();
		int l = sc.nextInt();
		int product = w * l;
		int around = 2 * (w + l);
		System.out.println(product + " " + around);
		
	} main {

		Scanner sc = new Scanner(System.in);
		int w = sc.nextInt();
		int l = sc.nextInt();
		int product = w * l;
		int around = 2 * (w + l);
		System.out.println(product + " " + around);
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int w = sc.nextInt(); w sc.nextInt() sc.nextInt sc int l = sc.nextInt(); l sc.nextInt() sc.nextInt sc int product = w * l; product w * l w l int around = 2 * (w + l); around 2 * (w + l) 2 (w + l) w l System.out.println(product + " " + around) System.out.println System.out System System.out product + " " + around product + " " + around product " " around String[] args args public class Main {

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int w = sc.nextInt();
		int l = sc.nextInt();
		int product = w * l;
		int around = 2 * (w + l);
		System.out.println(product + " " + around);
		
	}
} public class Main {

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int w = sc.nextInt();
		int l = sc.nextInt();
		int product = w * l;
		int around = 2 * (w + l);
		System.out.println(product + " " + around);
		
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int w = sc.nextInt();
		int l = sc.nextInt();
		int product = w * l;
		int around = 2 * (w + l);
		System.out.println(product + " " + around);
		
	}
}