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

public class Main {
	public static void main(String[] args) throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader bf = new BufferedReader(is);
		String[] strAry = bf.readLine().split(" ");
		int h = Integer.parseInt(strAry[0]);
		int w = Integer.parseInt(strAry[1]);
		System.out.println(h * w + " " + ((h * 2) + (w * 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{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader bf = new BufferedReader(is);
		String[] strAry = bf.readLine().split(" ");
		int h = Integer.parseInt(strAry[0]);
		int w = Integer.parseInt(strAry[1]);
		System.out.println(h * w + " " + ((h * 2) + (w * 2)));
	}
} Main public static void main(String[] args) throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader bf = new BufferedReader(is);
		String[] strAry = bf.readLine().split(" ");
		int h = Integer.parseInt(strAry[0]);
		int w = Integer.parseInt(strAry[1]);
		System.out.println(h * w + " " + ((h * 2) + (w * 2)));
	} main {
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader bf = new BufferedReader(is);
		String[] strAry = bf.readLine().split(" ");
		int h = Integer.parseInt(strAry[0]);
		int w = Integer.parseInt(strAry[1]);
		System.out.println(h * w + " " + ((h * 2) + (w * 2)));
	} InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader bf = new BufferedReader(is); bf new BufferedReader(is) String[] strAry = bf.readLine().split(" "); strAry bf.readLine().split(" ") bf.readLine().split bf.readLine() bf.readLine bf " " int h = Integer.parseInt(strAry[0]); h Integer.parseInt(strAry[0]) Integer.parseInt Integer strAry[0] strAry 0 int w = Integer.parseInt(strAry[1]); w Integer.parseInt(strAry[1]) Integer.parseInt Integer strAry[1] strAry 1 System.out.println(h * w + " " + ((h * 2) + (w * 2))) System.out.println System.out System System.out h * w + " " + ((h * 2) + (w * 2)) h * w + " " + ((h * 2) + (w * 2)) h * w h w " " ((h * 2) + (w * 2)) (h * 2) h 2 (w * 2) w 2 String[] args args public class Main {
	public static void main(String[] args) throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader bf = new BufferedReader(is);
		String[] strAry = bf.readLine().split(" ");
		int h = Integer.parseInt(strAry[0]);
		int w = Integer.parseInt(strAry[1]);
		System.out.println(h * w + " " + ((h * 2) + (w * 2)));
	}
} public class Main {
	public static void main(String[] args) throws IOException{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader bf = new BufferedReader(is);
		String[] strAry = bf.readLine().split(" ");
		int h = Integer.parseInt(strAry[0]);
		int w = Integer.parseInt(strAry[1]);
		System.out.println(h * w + " " + ((h * 2) + (w * 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{
		InputStreamReader is = new InputStreamReader(System.in);
		BufferedReader bf = new BufferedReader(is);
		String[] strAry = bf.readLine().split(" ");
		int h = Integer.parseInt(strAry[0]);
		int w = Integer.parseInt(strAry[1]);
		System.out.println(h * w + " " + ((h * 2) + (w * 2)));
	}
}