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

class Main{
    public static void main(String[] args) throws Exception{
    	int a,b;
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String line = br.readLine();
        String[] rArray = line.split(" ");
        a = Integer.parseInt(rArray[0]);
        b = Integer.parseInt(rArray[1]);

        System.out.println(a*b + " " +(a+b)*2);
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{
    public static void main(String[] args) throws Exception{
    	int a,b;
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String line = br.readLine();
        String[] rArray = line.split(" ");
        a = Integer.parseInt(rArray[0]);
        b = Integer.parseInt(rArray[1]);

        System.out.println(a*b + " " +(a+b)*2);
    }
} Main public static void main(String[] args) throws Exception{
    	int a,b;
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String line = br.readLine();
        String[] rArray = line.split(" ");
        a = Integer.parseInt(rArray[0]);
        b = Integer.parseInt(rArray[1]);

        System.out.println(a*b + " " +(a+b)*2);
    } main {
    	int a,b;
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String line = br.readLine();
        String[] rArray = line.split(" ");
        a = Integer.parseInt(rArray[0]);
        b = Integer.parseInt(rArray[1]);

        System.out.println(a*b + " " +(a+b)*2);
    } int a a b; b 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 String[] rArray = line.split(" "); rArray line.split(" ") line.split line " " a = Integer.parseInt(rArray[0]) a Integer.parseInt(rArray[0]) Integer.parseInt Integer rArray[0] rArray 0 b = Integer.parseInt(rArray[1]) b Integer.parseInt(rArray[1]) Integer.parseInt Integer rArray[1] rArray 1 System.out.println(a*b + " " +(a+b)*2) System.out.println System.out System System.out a*b + " " +(a+b)*2 a*b + " " +(a+b)*2 a*b a b " " (a+b)*2 (a+b) a b 2 String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main{
    public static void main(String[] args) throws Exception{
    	int a,b;
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String line = br.readLine();
        String[] rArray = line.split(" ");
        a = Integer.parseInt(rArray[0]);
        b = Integer.parseInt(rArray[1]);

        System.out.println(a*b + " " +(a+b)*2);
    }
}