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 str = br.readLine();
		String[] depth_width = str.split(" ", 0);
		int depth = Integer.parseInt(depth_width[0]);
		int width = Integer.parseInt(depth_width[1]);;

		int perimeter = depth * 2 + width * 2;
		int area = depth * width;

		System.out.println(area + " " + perimeter);
	}
} 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 str = br.readLine();
		String[] depth_width = str.split(" ", 0);
		int depth = Integer.parseInt(depth_width[0]);
		int width = Integer.parseInt(depth_width[1]);;

		int perimeter = depth * 2 + width * 2;
		int area = depth * width;

		System.out.println(area + " " + perimeter);
	}
} Main public static void main(String args[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] depth_width = str.split(" ", 0);
		int depth = Integer.parseInt(depth_width[0]);
		int width = Integer.parseInt(depth_width[1]);;

		int perimeter = depth * 2 + width * 2;
		int area = depth * width;

		System.out.println(area + " " + perimeter);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] depth_width = str.split(" ", 0);
		int depth = Integer.parseInt(depth_width[0]);
		int width = Integer.parseInt(depth_width[1]);;

		int perimeter = depth * 2 + width * 2;
		int area = depth * width;

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

		int perimeter = depth * 2 + width * 2;
		int area = depth * width;

		System.out.println(area + " " + perimeter);
	}
} public class Main {
	public static void main(String args[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] depth_width = str.split(" ", 0);
		int depth = Integer.parseInt(depth_width[0]);
		int width = Integer.parseInt(depth_width[1]);;

		int perimeter = depth * 2 + width * 2;
		int area = depth * width;

		System.out.println(area + " " + perimeter);
	}
} 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 str = br.readLine();
		String[] depth_width = str.split(" ", 0);
		int depth = Integer.parseInt(depth_width[0]);
		int width = Integer.parseInt(depth_width[1]);;

		int perimeter = depth * 2 + width * 2;
		int area = depth * width;

		System.out.println(area + " " + perimeter);
	}
}