
  import java.util.Scanner;
public class Main{

    int a,b;

    public void input(){
	Scanner scan = new Scanner(System.in);
       a = scan.nextInt();
       b = scan.nextInt();
        
    }
 


    public void output(){
	System.out.print(a*b+" ");
        System.out.println(2*a+2*b);
    }
 public static void main(String[] args){
     Main p = new Main();
     p.input();
     p.output();
 }
}
   import java.util.Scanner; Scanner java.util public class Main{

    int a,b;

    public void input(){
	Scanner scan = new Scanner(System.in);
       a = scan.nextInt();
       b = scan.nextInt();
        
    }
 


    public void output(){
	System.out.print(a*b+" ");
        System.out.println(2*a+2*b);
    }
 public static void main(String[] args){
     Main p = new Main();
     p.input();
     p.output();
 }
} Main int a a b; b public void input(){
	Scanner scan = new Scanner(System.in);
       a = scan.nextInt();
       b = scan.nextInt();
        
    } input {
	Scanner scan = new Scanner(System.in);
       a = scan.nextInt();
       b = scan.nextInt();
        
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) a = scan.nextInt() a scan.nextInt() scan.nextInt scan b = scan.nextInt() b scan.nextInt() scan.nextInt scan public void output(){
	System.out.print(a*b+" ");
        System.out.println(2*a+2*b);
    } output {
	System.out.print(a*b+" ");
        System.out.println(2*a+2*b);
    } System.out.print(a*b+" ") System.out.print System.out System System.out a*b+" " a*b a b " " System.out.println(2*a+2*b) System.out.println System.out System System.out 2*a+2*b 2*a 2 a 2*b 2 b public static void main(String[] args){
     Main p = new Main();
     p.input();
     p.output();
 } main {
     Main p = new Main();
     p.input();
     p.output();
 } Main p = new Main(); p new Main() p.input() p.input p p.output() p.output p String[] args args public class Main{

    int a,b;

    public void input(){
	Scanner scan = new Scanner(System.in);
       a = scan.nextInt();
       b = scan.nextInt();
        
    }
 


    public void output(){
	System.out.print(a*b+" ");
        System.out.println(2*a+2*b);
    }
 public static void main(String[] args){
     Main p = new Main();
     p.input();
     p.output();
 }
} public class Main{

    int a,b;

    public void input(){
	Scanner scan = new Scanner(System.in);
       a = scan.nextInt();
       b = scan.nextInt();
        
    }
 


    public void output(){
	System.out.print(a*b+" ");
        System.out.println(2*a+2*b);
    }
 public static void main(String[] args){
     Main p = new Main();
     p.input();
     p.output();
 }
} Main

  import java.util.Scanner;
public class Main{

    int a,b;

    public void input(){
	Scanner scan = new Scanner(System.in);
       a = scan.nextInt();
       b = scan.nextInt();
        
    }
 


    public void output(){
	System.out.print(a*b+" ");
        System.out.println(2*a+2*b);
    }
 public static void main(String[] args){
     Main p = new Main();
     p.input();
     p.output();
 }
}
  