import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = 0, b = 0;
		String temp;
		try{
			temp = scan.next();
			a = Integer.parseInt(temp);
			temp = scan.next();
			b = Integer.parseInt(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.println((a * b) + " " + (2 * (a + b)));
		return;
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = 0, b = 0;
		String temp;
		try{
			temp = scan.next();
			a = Integer.parseInt(temp);
			temp = scan.next();
			b = Integer.parseInt(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.println((a * b) + " " + (2 * (a + b)));
		return;
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = 0, b = 0;
		String temp;
		try{
			temp = scan.next();
			a = Integer.parseInt(temp);
			temp = scan.next();
			b = Integer.parseInt(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.println((a * b) + " " + (2 * (a + b)));
		return;
	} main {
		Scanner scan = new Scanner(System.in);
		int a = 0, b = 0;
		String temp;
		try{
			temp = scan.next();
			a = Integer.parseInt(temp);
			temp = scan.next();
			b = Integer.parseInt(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.println((a * b) + " " + (2 * (a + b)));
		return;
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = 0 a 0 b = 0; b 0 String temp; temp try{
			temp = scan.next();
			a = Integer.parseInt(temp);
			temp = scan.next();
			b = Integer.parseInt(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		} catch( IllegalStateException e ){
			System.out.println(e);
		} IllegalStateException e {
			System.out.println(e);
		} System.out.println(e) System.out.println System.out System System.out e {
			temp = scan.next();
			a = Integer.parseInt(temp);
			temp = scan.next();
			b = Integer.parseInt(temp);
		} temp = scan.next() temp scan.next() scan.next scan a = Integer.parseInt(temp) a Integer.parseInt(temp) Integer.parseInt Integer temp temp = scan.next() temp scan.next() scan.next scan b = Integer.parseInt(temp) b Integer.parseInt(temp) Integer.parseInt Integer temp System.out.println((a * b) + " " + (2 * (a + b))) System.out.println System.out System System.out (a * b) + " " + (2 * (a + b)) (a * b) + " " + (2 * (a + b)) (a * b) a b " " (2 * (a + b)) 2 (a + b) a b return; String[] args args public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = 0, b = 0;
		String temp;
		try{
			temp = scan.next();
			a = Integer.parseInt(temp);
			temp = scan.next();
			b = Integer.parseInt(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.println((a * b) + " " + (2 * (a + b)));
		return;
	}
} public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = 0, b = 0;
		String temp;
		try{
			temp = scan.next();
			a = Integer.parseInt(temp);
			temp = scan.next();
			b = Integer.parseInt(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.println((a * b) + " " + (2 * (a + b)));
		return;
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = 0, b = 0;
		String temp;
		try{
			temp = scan.next();
			a = Integer.parseInt(temp);
			temp = scan.next();
			b = Integer.parseInt(temp);
		}catch( IllegalStateException e ){
			System.out.println(e);
		}
		System.out.println((a * b) + " " + (2 * (a + b)));
		return;
	}
}