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

public class Main {
	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader( new InputStreamReader(System.in));
		int a,b;
		String buf = br.readLine();
		StringTokenizer st= new StringTokenizer(buf, " ");

		a=Integer.parseInt(st.nextToken());
		b=Integer.parseInt(st.nextToken());


		System.out.println(a*b + " " + 2*(a+b));


	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util public class Main {
	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader( new InputStreamReader(System.in));
		int a,b;
		String buf = br.readLine();
		StringTokenizer st= new StringTokenizer(buf, " ");

		a=Integer.parseInt(st.nextToken());
		b=Integer.parseInt(st.nextToken());


		System.out.println(a*b + " " + 2*(a+b));


	}
} Main public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader( new InputStreamReader(System.in));
		int a,b;
		String buf = br.readLine();
		StringTokenizer st= new StringTokenizer(buf, " ");

		a=Integer.parseInt(st.nextToken());
		b=Integer.parseInt(st.nextToken());


		System.out.println(a*b + " " + 2*(a+b));


	} main {

		BufferedReader br = new BufferedReader( new InputStreamReader(System.in));
		int a,b;
		String buf = br.readLine();
		StringTokenizer st= new StringTokenizer(buf, " ");

		a=Integer.parseInt(st.nextToken());
		b=Integer.parseInt(st.nextToken());


		System.out.println(a*b + " " + 2*(a+b));


	} BufferedReader br = new BufferedReader( new InputStreamReader(System.in)); br new BufferedReader( new InputStreamReader(System.in)) int a a b; b String buf = br.readLine(); buf br.readLine() br.readLine br StringTokenizer st= new StringTokenizer(buf, " "); st new StringTokenizer(buf, " ") a=Integer.parseInt(st.nextToken()) a Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st b=Integer.parseInt(st.nextToken()) b Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st 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 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 buf = br.readLine();
		StringTokenizer st= new StringTokenizer(buf, " ");

		a=Integer.parseInt(st.nextToken());
		b=Integer.parseInt(st.nextToken());


		System.out.println(a*b + " " + 2*(a+b));


	}
} public class Main {
	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader( new InputStreamReader(System.in));
		int a,b;
		String buf = br.readLine();
		StringTokenizer st= new StringTokenizer(buf, " ");

		a=Integer.parseInt(st.nextToken());
		b=Integer.parseInt(st.nextToken());


		System.out.println(a*b + " " + 2*(a+b));


	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader( new InputStreamReader(System.in));
		int a,b;
		String buf = br.readLine();
		StringTokenizer st= new StringTokenizer(buf, " ");

		a=Integer.parseInt(st.nextToken());
		b=Integer.parseInt(st.nextToken());


		System.out.println(a*b + " " + 2*(a+b));


	}
}