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 test = br.readLine();
		String[] result = test.split(" ");
		System.out.println(Integer.parseInt(result[0]) *Integer.parseInt(result[1]) + " " + (Integer.parseInt(result[0]) +Integer.parseInt(result[1]))*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{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String test = br.readLine();
		String[] result = test.split(" ");
		System.out.println(Integer.parseInt(result[0]) *Integer.parseInt(result[1]) + " " + (Integer.parseInt(result[0]) +Integer.parseInt(result[1]))*2); 
	}

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String test = br.readLine();
		String[] result = test.split(" ");
		System.out.println(Integer.parseInt(result[0]) *Integer.parseInt(result[1]) + " " + (Integer.parseInt(result[0]) +Integer.parseInt(result[1]))*2); 
	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String test = br.readLine();
		String[] result = test.split(" ");
		System.out.println(Integer.parseInt(result[0]) *Integer.parseInt(result[1]) + " " + (Integer.parseInt(result[0]) +Integer.parseInt(result[1]))*2); 
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String test = br.readLine(); test br.readLine() br.readLine br String[] result = test.split(" "); result test.split(" ") test.split test " " System.out.println(Integer.parseInt(result[0]) *Integer.parseInt(result[1]) + " " + (Integer.parseInt(result[0]) +Integer.parseInt(result[1]))*2) System.out.println System.out System System.out Integer.parseInt(result[0]) *Integer.parseInt(result[1]) + " " + (Integer.parseInt(result[0]) +Integer.parseInt(result[1]))*2 Integer.parseInt(result[0]) *Integer.parseInt(result[1]) + " " + (Integer.parseInt(result[0]) +Integer.parseInt(result[1]))*2 Integer.parseInt(result[0]) *Integer.parseInt(result[1]) Integer.parseInt(result[0]) Integer.parseInt Integer result[0] result 0 Integer.parseInt(result[1]) Integer.parseInt Integer result[1] result 1 " " (Integer.parseInt(result[0]) +Integer.parseInt(result[1]))*2 (Integer.parseInt(result[0]) +Integer.parseInt(result[1])) Integer.parseInt(result[0]) Integer.parseInt Integer result[0] result 0 Integer.parseInt(result[1]) Integer.parseInt Integer result[1] result 1 2 String[] args args public class Main {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String test = br.readLine();
		String[] result = test.split(" ");
		System.out.println(Integer.parseInt(result[0]) *Integer.parseInt(result[1]) + " " + (Integer.parseInt(result[0]) +Integer.parseInt(result[1]))*2); 
	}

} public class Main {

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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String test = br.readLine();
		String[] result = test.split(" ");
		System.out.println(Integer.parseInt(result[0]) *Integer.parseInt(result[1]) + " " + (Integer.parseInt(result[0]) +Integer.parseInt(result[1]))*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{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String test = br.readLine();
		String[] result = test.split(" ");
		System.out.println(Integer.parseInt(result[0]) *Integer.parseInt(result[1]) + " " + (Integer.parseInt(result[0]) +Integer.parseInt(result[1]))*2); 
	}

}