import java.io.*;
 
class Main {
    public static void main(String[] arg)throws IOException{
        BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
        String s = b.readLine();
        String[] spl = s.split(" ");
        int tate =  Integer.parseInt(spl[0]);
        int yoko =  Integer.parseInt(spl[1]);
        System.out.println(tate*yoko + " "+ 2*(tate+yoko));
    }   
} import java.io.*; io.* java class Main {
    public static void main(String[] arg)throws IOException{
        BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
        String s = b.readLine();
        String[] spl = s.split(" ");
        int tate =  Integer.parseInt(spl[0]);
        int yoko =  Integer.parseInt(spl[1]);
        System.out.println(tate*yoko + " "+ 2*(tate+yoko));
    }   
} Main public static void main(String[] arg)throws IOException{
        BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
        String s = b.readLine();
        String[] spl = s.split(" ");
        int tate =  Integer.parseInt(spl[0]);
        int yoko =  Integer.parseInt(spl[1]);
        System.out.println(tate*yoko + " "+ 2*(tate+yoko));
    } main {
        BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
        String s = b.readLine();
        String[] spl = s.split(" ");
        int tate =  Integer.parseInt(spl[0]);
        int yoko =  Integer.parseInt(spl[1]);
        System.out.println(tate*yoko + " "+ 2*(tate+yoko));
    } BufferedReader b = new BufferedReader(new InputStreamReader(System.in)); b new BufferedReader(new InputStreamReader(System.in)) String s = b.readLine(); s b.readLine() b.readLine b String[] spl = s.split(" "); spl s.split(" ") s.split s " " int tate =  Integer.parseInt(spl[0]); tate Integer.parseInt(spl[0]) Integer.parseInt Integer spl[0] spl 0 int yoko =  Integer.parseInt(spl[1]); yoko Integer.parseInt(spl[1]) Integer.parseInt Integer spl[1] spl 1 System.out.println(tate*yoko + " "+ 2*(tate+yoko)) System.out.println System.out System System.out tate*yoko + " "+ 2*(tate+yoko) tate*yoko + " "+ 2*(tate+yoko) tate*yoko tate yoko " " 2*(tate+yoko) 2 (tate+yoko) tate yoko String[] arg arg
import java.io.*;
 
class Main {
    public static void main(String[] arg)throws IOException{
        BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
        String s = b.readLine();
        String[] spl = s.split(" ");
        int tate =  Integer.parseInt(spl[0]);
        int yoko =  Integer.parseInt(spl[1]);
        System.out.println(tate*yoko + " "+ 2*(tate+yoko));
    }   
}