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[] s = br.readLine().split(" ");
	int x = Integer.parseInt(s[0]);
	int y = Integer.parseInt(s[1]);

	int menseki = x*y;
	int shu = (x+y)*2;
	System.out.println(menseki + " " + shu); 
    }
} 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[] s = br.readLine().split(" ");
	int x = Integer.parseInt(s[0]);
	int y = Integer.parseInt(s[1]);

	int menseki = x*y;
	int shu = (x+y)*2;
	System.out.println(menseki + " " + shu); 
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
	String[] s = br.readLine().split(" ");
	int x = Integer.parseInt(s[0]);
	int y = Integer.parseInt(s[1]);

	int menseki = x*y;
	int shu = (x+y)*2;
	System.out.println(menseki + " " + shu); 
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
	String[] s = br.readLine().split(" ");
	int x = Integer.parseInt(s[0]);
	int y = Integer.parseInt(s[1]);

	int menseki = x*y;
	int shu = (x+y)*2;
	System.out.println(menseki + " " + shu); 
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] s = br.readLine().split(" "); s br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int x = Integer.parseInt(s[0]); x Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int y = Integer.parseInt(s[1]); y Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 int menseki = x*y; menseki x*y x y int shu = (x+y)*2; shu (x+y)*2 (x+y) x y 2 System.out.println(menseki + " " + shu) System.out.println System.out System System.out menseki + " " + shu menseki + " " + shu menseki " " shu String[] args args public class Main {
 
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
	String[] s = br.readLine().split(" ");
	int x = Integer.parseInt(s[0]);
	int y = Integer.parseInt(s[1]);

	int menseki = x*y;
	int shu = (x+y)*2;
	System.out.println(menseki + " " + shu); 
    }
} public class Main {
 
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
	String[] s = br.readLine().split(" ");
	int x = Integer.parseInt(s[0]);
	int y = Integer.parseInt(s[1]);

	int menseki = x*y;
	int shu = (x+y)*2;
	System.out.println(menseki + " " + shu); 
    }
} 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[] s = br.readLine().split(" ");
	int x = Integer.parseInt(s[0]);
	int y = Integer.parseInt(s[1]);

	int menseki = x*y;
	int shu = (x+y)*2;
	System.out.println(menseki + " " + shu); 
    }
}