import java.io.*;
class Main{
	public static void main(String[] args){
		
		try{
		
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));


			String c = in.readLine();
			String[] str = c.split(" ");
			int[] num = new int[str.length];
			for(int i=0;i<str.length;i++){
				num[i] = Integer.parseInt(str[i]);
			}
			if(num.length == 2){
				System.out.print(num[0]*num[1] + " " );
				System.out.println(2*(num[0]+num[1]));
			}
		}catch(IOException e){
			e.printStackTrace();
		}

	}
} import java.io.*; io.* java class Main{
	public static void main(String[] args){
		
		try{
		
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));


			String c = in.readLine();
			String[] str = c.split(" ");
			int[] num = new int[str.length];
			for(int i=0;i<str.length;i++){
				num[i] = Integer.parseInt(str[i]);
			}
			if(num.length == 2){
				System.out.print(num[0]*num[1] + " " );
				System.out.println(2*(num[0]+num[1]));
			}
		}catch(IOException e){
			e.printStackTrace();
		}

	}
} Main public static void main(String[] args){
		
		try{
		
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));


			String c = in.readLine();
			String[] str = c.split(" ");
			int[] num = new int[str.length];
			for(int i=0;i<str.length;i++){
				num[i] = Integer.parseInt(str[i]);
			}
			if(num.length == 2){
				System.out.print(num[0]*num[1] + " " );
				System.out.println(2*(num[0]+num[1]));
			}
		}catch(IOException e){
			e.printStackTrace();
		}

	} main {
		
		try{
		
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));


			String c = in.readLine();
			String[] str = c.split(" ");
			int[] num = new int[str.length];
			for(int i=0;i<str.length;i++){
				num[i] = Integer.parseInt(str[i]);
			}
			if(num.length == 2){
				System.out.print(num[0]*num[1] + " " );
				System.out.println(2*(num[0]+num[1]));
			}
		}catch(IOException e){
			e.printStackTrace();
		}

	} try{
		
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));


			String c = in.readLine();
			String[] str = c.split(" ");
			int[] num = new int[str.length];
			for(int i=0;i<str.length;i++){
				num[i] = Integer.parseInt(str[i]);
			}
			if(num.length == 2){
				System.out.print(num[0]*num[1] + " " );
				System.out.println(2*(num[0]+num[1]));
			}
		}catch(IOException e){
			e.printStackTrace();
		} catch(IOException e){
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
		
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));


			String c = in.readLine();
			String[] str = c.split(" ");
			int[] num = new int[str.length];
			for(int i=0;i<str.length;i++){
				num[i] = Integer.parseInt(str[i]);
			}
			if(num.length == 2){
				System.out.print(num[0]*num[1] + " " );
				System.out.println(2*(num[0]+num[1]));
			}
		} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String c = in.readLine(); c in.readLine() in.readLine in String[] str = c.split(" "); str c.split(" ") c.split c " " int[] num = new int[str.length]; num new int[str.length] str.length str str.length for(int i=0;i<str.length;i++){
				num[i] = Integer.parseInt(str[i]);
			} int i=0; int i=0; i 0 i<str.length i str.length str str.length i++ i++ i {
				num[i] = Integer.parseInt(str[i]);
			} {
				num[i] = Integer.parseInt(str[i]);
			} num[i] = Integer.parseInt(str[i]) num[i] num i Integer.parseInt(str[i]) Integer.parseInt Integer str[i] str i if(num.length == 2){
				System.out.print(num[0]*num[1] + " " );
				System.out.println(2*(num[0]+num[1]));
			} num.length == 2 num.length num num.length 2 {
				System.out.print(num[0]*num[1] + " " );
				System.out.println(2*(num[0]+num[1]));
			} System.out.print(num[0]*num[1] + " " ) System.out.print System.out System System.out num[0]*num[1] + " " num[0]*num[1] num[0] num 0 num[1] num 1 " " System.out.println(2*(num[0]+num[1])) System.out.println System.out System System.out 2*(num[0]+num[1]) 2 (num[0]+num[1]) num[0] num 0 num[1] num 1 String[] args args
import java.io.*;
class Main{
	public static void main(String[] args){
		
		try{
		
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));


			String c = in.readLine();
			String[] str = c.split(" ");
			int[] num = new int[str.length];
			for(int i=0;i<str.length;i++){
				num[i] = Integer.parseInt(str[i]);
			}
			if(num.length == 2){
				System.out.print(num[0]*num[1] + " " );
				System.out.println(2*(num[0]+num[1]));
			}
		}catch(IOException e){
			e.printStackTrace();
		}

	}
}