import java.io.*;
import java.util.*;
public class Main {
	public static void main(String[] args)throws IOException{
		InputStreamReader isr=new InputStreamReader(System.in);
		BufferedReader br=new BufferedReader(isr);
		String s=br.readLine();
		StringTokenizer st=new StringTokenizer(s," ");
		
		int x=Integer.parseInt(st.nextToken());
		int y=Integer.parseInt(st.nextToken());
		System.out.print(x*y);
		System.out.print(" ");
		System.out.println(2*x+2*y);
		
		
	}

} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main(String[] args)throws IOException{
		InputStreamReader isr=new InputStreamReader(System.in);
		BufferedReader br=new BufferedReader(isr);
		String s=br.readLine();
		StringTokenizer st=new StringTokenizer(s," ");
		
		int x=Integer.parseInt(st.nextToken());
		int y=Integer.parseInt(st.nextToken());
		System.out.print(x*y);
		System.out.print(" ");
		System.out.println(2*x+2*y);
		
		
	}

} Main public static void main(String[] args)throws IOException{
		InputStreamReader isr=new InputStreamReader(System.in);
		BufferedReader br=new BufferedReader(isr);
		String s=br.readLine();
		StringTokenizer st=new StringTokenizer(s," ");
		
		int x=Integer.parseInt(st.nextToken());
		int y=Integer.parseInt(st.nextToken());
		System.out.print(x*y);
		System.out.print(" ");
		System.out.println(2*x+2*y);
		
		
	} main {
		InputStreamReader isr=new InputStreamReader(System.in);
		BufferedReader br=new BufferedReader(isr);
		String s=br.readLine();
		StringTokenizer st=new StringTokenizer(s," ");
		
		int x=Integer.parseInt(st.nextToken());
		int y=Integer.parseInt(st.nextToken());
		System.out.print(x*y);
		System.out.print(" ");
		System.out.println(2*x+2*y);
		
		
	} InputStreamReader isr=new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br=new BufferedReader(isr); br new BufferedReader(isr) String s=br.readLine(); s br.readLine() br.readLine br StringTokenizer st=new StringTokenizer(s," "); st new StringTokenizer(s," ") int x=Integer.parseInt(st.nextToken()); x Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st int y=Integer.parseInt(st.nextToken()); y Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st System.out.print(x*y) System.out.print System.out System System.out x*y x y System.out.print(" ") System.out.print System.out System System.out " " System.out.println(2*x+2*y) System.out.println System.out System System.out 2*x+2*y 2*x 2 x 2*y 2 y String[] args args public class Main {
	public static void main(String[] args)throws IOException{
		InputStreamReader isr=new InputStreamReader(System.in);
		BufferedReader br=new BufferedReader(isr);
		String s=br.readLine();
		StringTokenizer st=new StringTokenizer(s," ");
		
		int x=Integer.parseInt(st.nextToken());
		int y=Integer.parseInt(st.nextToken());
		System.out.print(x*y);
		System.out.print(" ");
		System.out.println(2*x+2*y);
		
		
	}

} public class Main {
	public static void main(String[] args)throws IOException{
		InputStreamReader isr=new InputStreamReader(System.in);
		BufferedReader br=new BufferedReader(isr);
		String s=br.readLine();
		StringTokenizer st=new StringTokenizer(s," ");
		
		int x=Integer.parseInt(st.nextToken());
		int y=Integer.parseInt(st.nextToken());
		System.out.print(x*y);
		System.out.print(" ");
		System.out.println(2*x+2*y);
		
		
	}

} Main
import java.io.*;
import java.util.*;
public class Main {
	public static void main(String[] args)throws IOException{
		InputStreamReader isr=new InputStreamReader(System.in);
		BufferedReader br=new BufferedReader(isr);
		String s=br.readLine();
		StringTokenizer st=new StringTokenizer(s," ");
		
		int x=Integer.parseInt(st.nextToken());
		int y=Integer.parseInt(st.nextToken());
		System.out.print(x*y);
		System.out.print(" ");
		System.out.println(2*x+2*y);
		
		
	}

}