import java.io.*;
import java.util.*;
class Main{
    public static void main(String[] args)throws IOException{
    	int a, b, s, l; // s:??¢???, l:??¨?????????
    	InputStreamReader isr =new InputStreamReader(System.in);
   		BufferedReader br =new BufferedReader(isr);
        String buf = br.readLine();
        StringTokenizer st = new StringTokenizer(buf," ");
    	a = Integer.parseInt(st.nextToken());
        b = Integer.parseInt(st.nextToken());
    	s = a*b;
    	l = (a + b) * 2;
        System.out.printf("%d %d\n", s, l);
    }
} import java.io.*; io.* java import java.util.*; util.* java class Main{
    public static void main(String[] args)throws IOException{
    	int a, b, s, l; // s:??¢???, l:??¨?????????
    	InputStreamReader isr =new InputStreamReader(System.in);
   		BufferedReader br =new BufferedReader(isr);
        String buf = br.readLine();
        StringTokenizer st = new StringTokenizer(buf," ");
    	a = Integer.parseInt(st.nextToken());
        b = Integer.parseInt(st.nextToken());
    	s = a*b;
    	l = (a + b) * 2;
        System.out.printf("%d %d\n", s, l);
    }
} Main public static void main(String[] args)throws IOException{
    	int a, b, s, l; // s:??¢???, l:??¨?????????
    	InputStreamReader isr =new InputStreamReader(System.in);
   		BufferedReader br =new BufferedReader(isr);
        String buf = br.readLine();
        StringTokenizer st = new StringTokenizer(buf," ");
    	a = Integer.parseInt(st.nextToken());
        b = Integer.parseInt(st.nextToken());
    	s = a*b;
    	l = (a + b) * 2;
        System.out.printf("%d %d\n", s, l);
    } main {
    	int a, b, s, l; // s:??¢???, l:??¨?????????
    	InputStreamReader isr =new InputStreamReader(System.in);
   		BufferedReader br =new BufferedReader(isr);
        String buf = br.readLine();
        StringTokenizer st = new StringTokenizer(buf," ");
    	a = Integer.parseInt(st.nextToken());
        b = Integer.parseInt(st.nextToken());
    	s = a*b;
    	l = (a + b) * 2;
        System.out.printf("%d %d\n", s, l);
    } int a a b b s s l; l InputStreamReader isr =new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br =new BufferedReader(isr); br new BufferedReader(isr) String buf = br.readLine(); buf br.readLine() br.readLine br StringTokenizer st = new StringTokenizer(buf," "); st new StringTokenizer(buf," ") 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 s = a*b s a*b a b l = (a + b) * 2 l (a + b) * 2 (a + b) a b 2 System.out.printf("%d %d\n", s, l) System.out.printf System.out System System.out "%d %d\n" s l String[] args args
import java.io.*;
import java.util.*;
class Main{
    public static void main(String[] args)throws IOException{
    	int a, b, s, l; // s:??¢???, l:??¨?????????
    	InputStreamReader isr =new InputStreamReader(System.in);
   		BufferedReader br =new BufferedReader(isr);
        String buf = br.readLine();
        StringTokenizer st = new StringTokenizer(buf," ");
    	a = Integer.parseInt(st.nextToken());
        b = Integer.parseInt(st.nextToken());
    	s = a*b;
    	l = (a + b) * 2;
        System.out.printf("%d %d\n", s, l);
    }
}