import java.io.*;

public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] input = br.readLine().split(" ");
        
        int tate = Integer.parseInt(input[0]);
        int yoko = Integer.parseInt(input[1]);
        if(tate < 1 || yoko < 1 || tate > 100 || yoko > 100){
            System.out.println("Error");
        }
        
        int men = 0;
        int nag = 0;
        
        men = tate * yoko;
        nag = (tate + yoko) * 2;
        
        System.out.println(men + " " + nag);
    }

} import java.io.*; io.* java public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] input = br.readLine().split(" ");
        
        int tate = Integer.parseInt(input[0]);
        int yoko = Integer.parseInt(input[1]);
        if(tate < 1 || yoko < 1 || tate > 100 || yoko > 100){
            System.out.println("Error");
        }
        
        int men = 0;
        int nag = 0;
        
        men = tate * yoko;
        nag = (tate + yoko) * 2;
        
        System.out.println(men + " " + nag);
    }

} Main public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] input = br.readLine().split(" ");
        
        int tate = Integer.parseInt(input[0]);
        int yoko = Integer.parseInt(input[1]);
        if(tate < 1 || yoko < 1 || tate > 100 || yoko > 100){
            System.out.println("Error");
        }
        
        int men = 0;
        int nag = 0;
        
        men = tate * yoko;
        nag = (tate + yoko) * 2;
        
        System.out.println(men + " " + nag);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] input = br.readLine().split(" ");
        
        int tate = Integer.parseInt(input[0]);
        int yoko = Integer.parseInt(input[1]);
        if(tate < 1 || yoko < 1 || tate > 100 || yoko > 100){
            System.out.println("Error");
        }
        
        int men = 0;
        int nag = 0;
        
        men = tate * yoko;
        nag = (tate + yoko) * 2;
        
        System.out.println(men + " " + nag);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] input = br.readLine().split(" "); input br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int tate = Integer.parseInt(input[0]); tate Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 int yoko = Integer.parseInt(input[1]); yoko Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 if(tate < 1 || yoko < 1 || tate > 100 || yoko > 100){
            System.out.println("Error");
        } tate < 1 || yoko < 1 || tate > 100 || yoko > 100 tate > 100 tate < 1 || yoko < 1 || tate > 100 || yoko > 100 tate < 1 tate 1 yoko < 1 yoko 1 tate > 100 tate 100 yoko > 100 yoko 100 {
            System.out.println("Error");
        } System.out.println("Error") System.out.println System.out System System.out "Error" int men = 0; men 0 int nag = 0; nag 0 men = tate * yoko men tate * yoko tate yoko nag = (tate + yoko) * 2 nag (tate + yoko) * 2 (tate + yoko) tate yoko 2 System.out.println(men + " " + nag) System.out.println System.out System System.out men + " " + nag men + " " + nag men " " nag String[] args args public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] input = br.readLine().split(" ");
        
        int tate = Integer.parseInt(input[0]);
        int yoko = Integer.parseInt(input[1]);
        if(tate < 1 || yoko < 1 || tate > 100 || yoko > 100){
            System.out.println("Error");
        }
        
        int men = 0;
        int nag = 0;
        
        men = tate * yoko;
        nag = (tate + yoko) * 2;
        
        System.out.println(men + " " + nag);
    }

} public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] input = br.readLine().split(" ");
        
        int tate = Integer.parseInt(input[0]);
        int yoko = Integer.parseInt(input[1]);
        if(tate < 1 || yoko < 1 || tate > 100 || yoko > 100){
            System.out.println("Error");
        }
        
        int men = 0;
        int nag = 0;
        
        men = tate * yoko;
        nag = (tate + yoko) * 2;
        
        System.out.println(men + " " + nag);
    }

} Main
import java.io.*;

public class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] input = br.readLine().split(" ");
        
        int tate = Integer.parseInt(input[0]);
        int yoko = Integer.parseInt(input[1]);
        if(tate < 1 || yoko < 1 || tate > 100 || yoko > 100){
            System.out.println("Error");
        }
        
        int men = 0;
        int nag = 0;
        
        men = tate * yoko;
        nag = (tate + yoko) * 2;
        
        System.out.println(men + " " + nag);
    }

}