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));
		String[] strArr = br.readLine().split(" ");
		long h = Long.parseLong(strArr[0]);
		long w = Long.parseLong(strArr[1]);
		long surface = h * w;
		long length = (h + w) << 1;
		System.out.printf("%d %d%n", surface, length);
	}
} 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));
		String[] strArr = br.readLine().split(" ");
		long h = Long.parseLong(strArr[0]);
		long w = Long.parseLong(strArr[1]);
		long surface = h * w;
		long length = (h + w) << 1;
		System.out.printf("%d %d%n", surface, length);
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArr = br.readLine().split(" ");
		long h = Long.parseLong(strArr[0]);
		long w = Long.parseLong(strArr[1]);
		long surface = h * w;
		long length = (h + w) << 1;
		System.out.printf("%d %d%n", surface, length);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArr = br.readLine().split(" ");
		long h = Long.parseLong(strArr[0]);
		long w = Long.parseLong(strArr[1]);
		long surface = h * w;
		long length = (h + w) << 1;
		System.out.printf("%d %d%n", surface, length);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] strArr = br.readLine().split(" "); strArr br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " long h = Long.parseLong(strArr[0]); h Long.parseLong(strArr[0]) Long.parseLong Long strArr[0] strArr 0 long w = Long.parseLong(strArr[1]); w Long.parseLong(strArr[1]) Long.parseLong Long strArr[1] strArr 1 long surface = h * w; surface h * w h w long length = (h + w) << 1; length (h + w) << 1 (h + w) h w 1 System.out.printf("%d %d%n", surface, length) System.out.printf System.out System System.out "%d %d%n" surface length String[] args args public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArr = br.readLine().split(" ");
		long h = Long.parseLong(strArr[0]);
		long w = Long.parseLong(strArr[1]);
		long surface = h * w;
		long length = (h + w) << 1;
		System.out.printf("%d %d%n", surface, length);
	}
} public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] strArr = br.readLine().split(" ");
		long h = Long.parseLong(strArr[0]);
		long w = Long.parseLong(strArr[1]);
		long surface = h * w;
		long length = (h + w) << 1;
		System.out.printf("%d %d%n", surface, length);
	}
} 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));
		String[] strArr = br.readLine().split(" ");
		long h = Long.parseLong(strArr[0]);
		long w = Long.parseLong(strArr[1]);
		long surface = h * w;
		long length = (h + w) << 1;
		System.out.printf("%d %d%n", surface, length);
	}
}