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

public class Main {

	public static void main(String[] args) throws IOException, NumberFormatException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		if( line != null ){
			String[] parts = line.split(" ");
			int lon = Integer.parseInt(parts[0]);
			int sid = Integer.parseInt(parts[1]);
			System.out.println((lon * sid) + " " + (lon * 2 + sid * 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, NumberFormatException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		if( line != null ){
			String[] parts = line.split(" ");
			int lon = Integer.parseInt(parts[0]);
			int sid = Integer.parseInt(parts[1]);
			System.out.println((lon * sid) + " " + (lon * 2 + sid * 2));
		}
	}

} Main public static void main(String[] args) throws IOException, NumberFormatException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		if( line != null ){
			String[] parts = line.split(" ");
			int lon = Integer.parseInt(parts[0]);
			int sid = Integer.parseInt(parts[1]);
			System.out.println((lon * sid) + " " + (lon * 2 + sid * 2));
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		if( line != null ){
			String[] parts = line.split(" ");
			int lon = Integer.parseInt(parts[0]);
			int sid = Integer.parseInt(parts[1]);
			System.out.println((lon * sid) + " " + (lon * 2 + sid * 2));
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br if( line != null ){
			String[] parts = line.split(" ");
			int lon = Integer.parseInt(parts[0]);
			int sid = Integer.parseInt(parts[1]);
			System.out.println((lon * sid) + " " + (lon * 2 + sid * 2));
		} line != null line null {
			String[] parts = line.split(" ");
			int lon = Integer.parseInt(parts[0]);
			int sid = Integer.parseInt(parts[1]);
			System.out.println((lon * sid) + " " + (lon * 2 + sid * 2));
		} String[] parts = line.split(" "); parts line.split(" ") line.split line " " int lon = Integer.parseInt(parts[0]); lon Integer.parseInt(parts[0]) Integer.parseInt Integer parts[0] parts 0 int sid = Integer.parseInt(parts[1]); sid Integer.parseInt(parts[1]) Integer.parseInt Integer parts[1] parts 1 System.out.println((lon * sid) + " " + (lon * 2 + sid * 2)) System.out.println System.out System System.out (lon * sid) + " " + (lon * 2 + sid * 2) (lon * sid) + " " + (lon * 2 + sid * 2) (lon * sid) lon sid " " (lon * 2 + sid * 2) lon * 2 lon 2 sid * 2 sid 2 String[] args args public class Main {

	public static void main(String[] args) throws IOException, NumberFormatException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		if( line != null ){
			String[] parts = line.split(" ");
			int lon = Integer.parseInt(parts[0]);
			int sid = Integer.parseInt(parts[1]);
			System.out.println((lon * sid) + " " + (lon * 2 + sid * 2));
		}
	}

} public class Main {

	public static void main(String[] args) throws IOException, NumberFormatException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		if( line != null ){
			String[] parts = line.split(" ");
			int lon = Integer.parseInt(parts[0]);
			int sid = Integer.parseInt(parts[1]);
			System.out.println((lon * sid) + " " + (lon * 2 + sid * 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, NumberFormatException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		if( line != null ){
			String[] parts = line.split(" ");
			int lon = Integer.parseInt(parts[0]);
			int sid = Integer.parseInt(parts[1]);
			System.out.println((lon * sid) + " " + (lon * 2 + sid * 2));
		}
	}

}