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

class Main {

	public static void main(String[] args) throws IOException {
        
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        
         String[] ab = in.readLine().split(" ");

         int a= Integer.parseInt(ab[0]);
         int b= Integer.parseInt(ab[1]);
         
        System.out.println(a*b +" " + 2*(a+b));
        
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main {

	public static void main(String[] args) throws IOException {
        
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        
         String[] ab = in.readLine().split(" ");

         int a= Integer.parseInt(ab[0]);
         int b= Integer.parseInt(ab[1]);
         
        System.out.println(a*b +" " + 2*(a+b));
        
	}

} Main public static void main(String[] args) throws IOException {
        
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        
         String[] ab = in.readLine().split(" ");

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

         int a= Integer.parseInt(ab[0]);
         int b= Integer.parseInt(ab[1]);
         
        System.out.println(a*b +" " + 2*(a+b));
        
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String[] ab = in.readLine().split(" "); ab in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int a= Integer.parseInt(ab[0]); a Integer.parseInt(ab[0]) Integer.parseInt Integer ab[0] ab 0 int b= Integer.parseInt(ab[1]); b Integer.parseInt(ab[1]) Integer.parseInt Integer ab[1] ab 1 System.out.println(a*b +" " + 2*(a+b)) System.out.println System.out System System.out a*b +" " + 2*(a+b) a*b +" " + 2*(a+b) a*b a b " " 2*(a+b) 2 (a+b) a b String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] args) throws IOException {
        
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        
         String[] ab = in.readLine().split(" ");

         int a= Integer.parseInt(ab[0]);
         int b= Integer.parseInt(ab[1]);
         
        System.out.println(a*b +" " + 2*(a+b));
        
	}

}