import java.io.*;
import java.util.*;
public class Main
{
    public static void main(String[] args) throws IOException{
    int area = 0;
    int times = 0;
    int i = 1;
    String s;
    int a = 0;
    int b = 0;
        while(i>0){
            BufferedReader x = new BufferedReader(new InputStreamReader(System.in));          
            s = x.readLine();
            StringTokenizer st = new StringTokenizer(s," ");
            a = Integer.parseInt(st.nextToken());
            b = Integer.parseInt(st.nextToken());

            if(a >= 1 && a <= 100 )
                i = -1;
            else if(b >= 1 && b <= 100)
                i = -1;
            else
                i = 1;
         }
        area = a*b;
        times = 2*a+2*b;
        System.out.println(""+area+" "+times+"");    
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main
{
    public static void main(String[] args) throws IOException{
    int area = 0;
    int times = 0;
    int i = 1;
    String s;
    int a = 0;
    int b = 0;
        while(i>0){
            BufferedReader x = new BufferedReader(new InputStreamReader(System.in));          
            s = x.readLine();
            StringTokenizer st = new StringTokenizer(s," ");
            a = Integer.parseInt(st.nextToken());
            b = Integer.parseInt(st.nextToken());

            if(a >= 1 && a <= 100 )
                i = -1;
            else if(b >= 1 && b <= 100)
                i = -1;
            else
                i = 1;
         }
        area = a*b;
        times = 2*a+2*b;
        System.out.println(""+area+" "+times+"");    
    }
} Main public static void main(String[] args) throws IOException{
    int area = 0;
    int times = 0;
    int i = 1;
    String s;
    int a = 0;
    int b = 0;
        while(i>0){
            BufferedReader x = new BufferedReader(new InputStreamReader(System.in));          
            s = x.readLine();
            StringTokenizer st = new StringTokenizer(s," ");
            a = Integer.parseInt(st.nextToken());
            b = Integer.parseInt(st.nextToken());

            if(a >= 1 && a <= 100 )
                i = -1;
            else if(b >= 1 && b <= 100)
                i = -1;
            else
                i = 1;
         }
        area = a*b;
        times = 2*a+2*b;
        System.out.println(""+area+" "+times+"");    
    } main {
    int area = 0;
    int times = 0;
    int i = 1;
    String s;
    int a = 0;
    int b = 0;
        while(i>0){
            BufferedReader x = new BufferedReader(new InputStreamReader(System.in));          
            s = x.readLine();
            StringTokenizer st = new StringTokenizer(s," ");
            a = Integer.parseInt(st.nextToken());
            b = Integer.parseInt(st.nextToken());

            if(a >= 1 && a <= 100 )
                i = -1;
            else if(b >= 1 && b <= 100)
                i = -1;
            else
                i = 1;
         }
        area = a*b;
        times = 2*a+2*b;
        System.out.println(""+area+" "+times+"");    
    } int area = 0; area 0 int times = 0; times 0 int i = 1; i 1 String s; s int a = 0; a 0 int b = 0; b 0 while(i>0){
            BufferedReader x = new BufferedReader(new InputStreamReader(System.in));          
            s = x.readLine();
            StringTokenizer st = new StringTokenizer(s," ");
            a = Integer.parseInt(st.nextToken());
            b = Integer.parseInt(st.nextToken());

            if(a >= 1 && a <= 100 )
                i = -1;
            else if(b >= 1 && b <= 100)
                i = -1;
            else
                i = 1;
         } i>0 i 0 {
            BufferedReader x = new BufferedReader(new InputStreamReader(System.in));          
            s = x.readLine();
            StringTokenizer st = new StringTokenizer(s," ");
            a = Integer.parseInt(st.nextToken());
            b = Integer.parseInt(st.nextToken());

            if(a >= 1 && a <= 100 )
                i = -1;
            else if(b >= 1 && b <= 100)
                i = -1;
            else
                i = 1;
         } BufferedReader x = new BufferedReader(new InputStreamReader(System.in)); x new BufferedReader(new InputStreamReader(System.in)) s = x.readLine() s x.readLine() x.readLine x StringTokenizer st = new StringTokenizer(s," "); st new StringTokenizer(s," ") a = Integer.parseInt(st.nextToken()) a Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st b = Integer.parseInt(st.nextToken()) b Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st if(a >= 1 && a <= 100 )
                i = -1;
            else if(b >= 1 && b <= 100)
                i = -1;
            else
                i = 1; a >= 1 && a <= 100 a >= 1 a 1 a <= 100 a 100 i = -1 i -1 1 if(b >= 1 && b <= 100)
                i = -1;
            else
                i = 1; b >= 1 && b <= 100 b >= 1 b 1 b <= 100 b 100 i = -1 i -1 1 i = 1 i 1 area = a*b area a*b a b times = 2*a+2*b times 2*a+2*b 2*a 2 a 2*b 2 b System.out.println(""+area+" "+times+"") System.out.println System.out System System.out ""+area+" "+times+"" times " " ""+area+" "+times+"" "" area " " times "" String[] args args public class Main
{
    public static void main(String[] args) throws IOException{
    int area = 0;
    int times = 0;
    int i = 1;
    String s;
    int a = 0;
    int b = 0;
        while(i>0){
            BufferedReader x = new BufferedReader(new InputStreamReader(System.in));          
            s = x.readLine();
            StringTokenizer st = new StringTokenizer(s," ");
            a = Integer.parseInt(st.nextToken());
            b = Integer.parseInt(st.nextToken());

            if(a >= 1 && a <= 100 )
                i = -1;
            else if(b >= 1 && b <= 100)
                i = -1;
            else
                i = 1;
         }
        area = a*b;
        times = 2*a+2*b;
        System.out.println(""+area+" "+times+"");    
    }
} public class Main
{
    public static void main(String[] args) throws IOException{
    int area = 0;
    int times = 0;
    int i = 1;
    String s;
    int a = 0;
    int b = 0;
        while(i>0){
            BufferedReader x = new BufferedReader(new InputStreamReader(System.in));          
            s = x.readLine();
            StringTokenizer st = new StringTokenizer(s," ");
            a = Integer.parseInt(st.nextToken());
            b = Integer.parseInt(st.nextToken());

            if(a >= 1 && a <= 100 )
                i = -1;
            else if(b >= 1 && b <= 100)
                i = -1;
            else
                i = 1;
         }
        area = a*b;
        times = 2*a+2*b;
        System.out.println(""+area+" "+times+"");    
    }
} Main
import java.io.*;
import java.util.*;
public class Main
{
    public static void main(String[] args) throws IOException{
    int area = 0;
    int times = 0;
    int i = 1;
    String s;
    int a = 0;
    int b = 0;
        while(i>0){
            BufferedReader x = new BufferedReader(new InputStreamReader(System.in));          
            s = x.readLine();
            StringTokenizer st = new StringTokenizer(s," ");
            a = Integer.parseInt(st.nextToken());
            b = Integer.parseInt(st.nextToken());

            if(a >= 1 && a <= 100 )
                i = -1;
            else if(b >= 1 && b <= 100)
                i = -1;
            else
                i = 1;
         }
        area = a*b;
        times = 2*a+2*b;
        System.out.println(""+area+" "+times+"");    
    }
}