import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		int a , b;
		String str = br.readLine();
		String strARY[] = str.split(" ");
		
		a= Integer.parseInt(strARY[0]);
		b = Integer.parseInt(strARY[1]);
		
		System.out.println((a*b) + " " + (a+b)*2);
		
		
	
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		int a , b;
		String str = br.readLine();
		String strARY[] = str.split(" ");
		
		a= Integer.parseInt(strARY[0]);
		b = Integer.parseInt(strARY[1]);
		
		System.out.println((a*b) + " " + (a+b)*2);
		
		
	
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		int a , b;
		String str = br.readLine();
		String strARY[] = str.split(" ");
		
		a= Integer.parseInt(strARY[0]);
		b = Integer.parseInt(strARY[1]);
		
		System.out.println((a*b) + " " + (a+b)*2);
		
		
	
	} main {
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		int a , b;
		String str = br.readLine();
		String strARY[] = str.split(" ");
		
		a= Integer.parseInt(strARY[0]);
		b = Integer.parseInt(strARY[1]);
		
		System.out.println((a*b) + " " + (a+b)*2);
		
		
	
	} BufferedReader br =new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int a a b; b String str = br.readLine(); str br.readLine() br.readLine br String strARY[] = str.split(" "); strARY str.split(" ") str.split str " " a= Integer.parseInt(strARY[0]) a Integer.parseInt(strARY[0]) Integer.parseInt Integer strARY[0] strARY 0 b = Integer.parseInt(strARY[1]) b Integer.parseInt(strARY[1]) Integer.parseInt Integer strARY[1] strARY 1 System.out.println((a*b) + " " + (a+b)*2) System.out.println System.out System System.out (a*b) + " " + (a+b)*2 (a*b) + " " + (a+b)*2 (a*b) a b " " (a+b)*2 (a+b) a b 2 String[] args args public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		int a , b;
		String str = br.readLine();
		String strARY[] = str.split(" ");
		
		a= Integer.parseInt(strARY[0]);
		b = Integer.parseInt(strARY[1]);
		
		System.out.println((a*b) + " " + (a+b)*2);
		
		
	
	}
} public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		int a , b;
		String str = br.readLine();
		String strARY[] = str.split(" ");
		
		a= Integer.parseInt(strARY[0]);
		b = Integer.parseInt(strARY[1]);
		
		System.out.println((a*b) + " " + (a+b)*2);
		
		
	
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		int a , b;
		String str = br.readLine();
		String strARY[] = str.split(" ");
		
		a= Integer.parseInt(strARY[0]);
		b = Integer.parseInt(strARY[1]);
		
		System.out.println((a*b) + " " + (a+b)*2);
		
		
	
	}
}