import java.util.*;
import java.io.*;

class Main{
    public static void main(String args[])throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int sum=0;
        String s;
        int num1=0,num2=0;
        while((s=br.readLine())!=null){
            String[] str = s.split(" ");
            num1 = Integer.parseInt(str[0]) * Integer.parseInt(str[1]);
            num2 = (Integer.parseInt(str[0]) + Integer.parseInt(str[1]))*2;
        }
        System.out.println(num1 +" "+num2);
    }
} import java.util.*; util.* java import java.io.*; io.* java class Main{
    public static void main(String args[])throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int sum=0;
        String s;
        int num1=0,num2=0;
        while((s=br.readLine())!=null){
            String[] str = s.split(" ");
            num1 = Integer.parseInt(str[0]) * Integer.parseInt(str[1]);
            num2 = (Integer.parseInt(str[0]) + Integer.parseInt(str[1]))*2;
        }
        System.out.println(num1 +" "+num2);
    }
} Main public static void main(String args[])throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int sum=0;
        String s;
        int num1=0,num2=0;
        while((s=br.readLine())!=null){
            String[] str = s.split(" ");
            num1 = Integer.parseInt(str[0]) * Integer.parseInt(str[1]);
            num2 = (Integer.parseInt(str[0]) + Integer.parseInt(str[1]))*2;
        }
        System.out.println(num1 +" "+num2);
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int sum=0;
        String s;
        int num1=0,num2=0;
        while((s=br.readLine())!=null){
            String[] str = s.split(" ");
            num1 = Integer.parseInt(str[0]) * Integer.parseInt(str[1]);
            num2 = (Integer.parseInt(str[0]) + Integer.parseInt(str[1]))*2;
        }
        System.out.println(num1 +" "+num2);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int sum=0; sum 0 String s; s int num1=0 num1 0 num2=0; num2 0 while((s=br.readLine())!=null){
            String[] str = s.split(" ");
            num1 = Integer.parseInt(str[0]) * Integer.parseInt(str[1]);
            num2 = (Integer.parseInt(str[0]) + Integer.parseInt(str[1]))*2;
        } (s=br.readLine())!=null (s=br.readLine()) s br.readLine() br.readLine br null {
            String[] str = s.split(" ");
            num1 = Integer.parseInt(str[0]) * Integer.parseInt(str[1]);
            num2 = (Integer.parseInt(str[0]) + Integer.parseInt(str[1]))*2;
        } String[] str = s.split(" "); str s.split(" ") s.split s " " num1 = Integer.parseInt(str[0]) * Integer.parseInt(str[1]) num1 Integer.parseInt(str[0]) * Integer.parseInt(str[1]) Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 num2 = (Integer.parseInt(str[0]) + Integer.parseInt(str[1]))*2 num2 (Integer.parseInt(str[0]) + Integer.parseInt(str[1]))*2 (Integer.parseInt(str[0]) + Integer.parseInt(str[1])) Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 2 System.out.println(num1 +" "+num2) System.out.println System.out System System.out num1 +" "+num2 num1 +" "+num2 num1 " " num2 String args[] args
import java.util.*;
import java.io.*;

class Main{
    public static void main(String args[])throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int sum=0;
        String s;
        int num1=0,num2=0;
        while((s=br.readLine())!=null){
            String[] str = s.split(" ");
            num1 = Integer.parseInt(str[0]) * Integer.parseInt(str[1]);
            num2 = (Integer.parseInt(str[0]) + Integer.parseInt(str[1]))*2;
        }
        System.out.println(num1 +" "+num2);
    }
}