import java.io.*;
   
class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s = br.readLine();
        //String s = "3 5";
        String[] str = s.split(" ");
        int x = Integer.parseInt(str[0]);
        int y = Integer.parseInt(str[1]);
          
        int z = x * y;
        int w = (x + y ) * 2;
        System.out.println(z+" "+w);
    }
}
  import java.io.*; io.* java class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s = br.readLine();
        //String s = "3 5";
        String[] str = s.split(" ");
        int x = Integer.parseInt(str[0]);
        int y = Integer.parseInt(str[1]);
          
        int z = x * y;
        int w = (x + y ) * 2;
        System.out.println(z+" "+w);
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s = br.readLine();
        //String s = "3 5";
        String[] str = s.split(" ");
        int x = Integer.parseInt(str[0]);
        int y = Integer.parseInt(str[1]);
          
        int z = x * y;
        int w = (x + y ) * 2;
        System.out.println(z+" "+w);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s = br.readLine();
        //String s = "3 5";
        String[] str = s.split(" ");
        int x = Integer.parseInt(str[0]);
        int y = Integer.parseInt(str[1]);
          
        int z = x * y;
        int w = (x + y ) * 2;
        System.out.println(z+" "+w);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String s = br.readLine(); s br.readLine() br.readLine br String[] str = s.split(" "); str s.split(" ") s.split s " " int x = Integer.parseInt(str[0]); x Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int y = Integer.parseInt(str[1]); y Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int z = x * y; z x * y x y int w = (x + y ) * 2; w (x + y ) * 2 (x + y ) x y 2 System.out.println(z+" "+w) System.out.println System.out System System.out z+" "+w z+" "+w z " " w String[] args args
import java.io.*;
   
class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s = br.readLine();
        //String s = "3 5";
        String[] str = s.split(" ");
        int x = Integer.parseInt(str[0]);
        int y = Integer.parseInt(str[1]);
          
        int z = x * y;
        int w = (x + y ) * 2;
        System.out.println(z+" "+w);
    }
}
 