import java.io.*;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Main m = new Main();
		String num_ = br.readLine();
		int[] num = m.splitIntChange(num_);
		int cir = num[0]*2+num[1]*2;
		int squ = num[0]*num[1];
		System.out.println(squ+" "+cir);
	}
	
	public int[] splitIntChange(String str){
		String[] str_ = str.split(" ");
		int strlen = str_.length;
		int[] numarray = new int[strlen];
		
		for(int i = 0;i < strlen;i++){
			numarray[i] = Integer.parseInt(str_[i]); 
		}
		
		return numarray;
	}
} import java.io.*; io.* java public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Main m = new Main();
		String num_ = br.readLine();
		int[] num = m.splitIntChange(num_);
		int cir = num[0]*2+num[1]*2;
		int squ = num[0]*num[1];
		System.out.println(squ+" "+cir);
	}
	
	public int[] splitIntChange(String str){
		String[] str_ = str.split(" ");
		int strlen = str_.length;
		int[] numarray = new int[strlen];
		
		for(int i = 0;i < strlen;i++){
			numarray[i] = Integer.parseInt(str_[i]); 
		}
		
		return numarray;
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Main m = new Main();
		String num_ = br.readLine();
		int[] num = m.splitIntChange(num_);
		int cir = num[0]*2+num[1]*2;
		int squ = num[0]*num[1];
		System.out.println(squ+" "+cir);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Main m = new Main();
		String num_ = br.readLine();
		int[] num = m.splitIntChange(num_);
		int cir = num[0]*2+num[1]*2;
		int squ = num[0]*num[1];
		System.out.println(squ+" "+cir);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Main m = new Main(); m new Main() String num_ = br.readLine(); num_ br.readLine() br.readLine br int[] num = m.splitIntChange(num_); num m.splitIntChange(num_) m.splitIntChange m num_ int cir = num[0]*2+num[1]*2; cir num[0]*2+num[1]*2 num[0]*2 num[0] num 0 2 num[1]*2 num[1] num 1 2 int squ = num[0]*num[1]; squ num[0]*num[1] num[0] num 0 num[1] num 1 System.out.println(squ+" "+cir) System.out.println System.out System System.out squ+" "+cir squ+" "+cir squ " " cir String[] args args public int[] splitIntChange(String str){
		String[] str_ = str.split(" ");
		int strlen = str_.length;
		int[] numarray = new int[strlen];
		
		for(int i = 0;i < strlen;i++){
			numarray[i] = Integer.parseInt(str_[i]); 
		}
		
		return numarray;
	} splitIntChange {
		String[] str_ = str.split(" ");
		int strlen = str_.length;
		int[] numarray = new int[strlen];
		
		for(int i = 0;i < strlen;i++){
			numarray[i] = Integer.parseInt(str_[i]); 
		}
		
		return numarray;
	} String[] str_ = str.split(" "); str_ str.split(" ") str.split str " " int strlen = str_.length; strlen str_.length str_ str_.length int[] numarray = new int[strlen]; numarray new int[strlen] strlen for(int i = 0;i < strlen;i++){
			numarray[i] = Integer.parseInt(str_[i]); 
		} int i = 0; int i = 0; i 0 i < strlen i strlen i++ i++ i {
			numarray[i] = Integer.parseInt(str_[i]); 
		} {
			numarray[i] = Integer.parseInt(str_[i]); 
		} numarray[i] = Integer.parseInt(str_[i]) numarray[i] numarray i Integer.parseInt(str_[i]) Integer.parseInt Integer str_[i] str_ i return numarray; numarray String str str public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Main m = new Main();
		String num_ = br.readLine();
		int[] num = m.splitIntChange(num_);
		int cir = num[0]*2+num[1]*2;
		int squ = num[0]*num[1];
		System.out.println(squ+" "+cir);
	}
	
	public int[] splitIntChange(String str){
		String[] str_ = str.split(" ");
		int strlen = str_.length;
		int[] numarray = new int[strlen];
		
		for(int i = 0;i < strlen;i++){
			numarray[i] = Integer.parseInt(str_[i]); 
		}
		
		return numarray;
	}
} public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Main m = new Main();
		String num_ = br.readLine();
		int[] num = m.splitIntChange(num_);
		int cir = num[0]*2+num[1]*2;
		int squ = num[0]*num[1];
		System.out.println(squ+" "+cir);
	}
	
	public int[] splitIntChange(String str){
		String[] str_ = str.split(" ");
		int strlen = str_.length;
		int[] numarray = new int[strlen];
		
		for(int i = 0;i < strlen;i++){
			numarray[i] = Integer.parseInt(str_[i]); 
		}
		
		return numarray;
	}
} Main
import java.io.*;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		Main m = new Main();
		String num_ = br.readLine();
		int[] num = m.splitIntChange(num_);
		int cir = num[0]*2+num[1]*2;
		int squ = num[0]*num[1];
		System.out.println(squ+" "+cir);
	}
	
	public int[] splitIntChange(String str){
		String[] str_ = str.split(" ");
		int strlen = str_.length;
		int[] numarray = new int[strlen];
		
		for(int i = 0;i < strlen;i++){
			numarray[i] = Integer.parseInt(str_[i]); 
		}
		
		return numarray;
	}
}