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

public class Main {

    public static void main(String[] args) throws IOException  {
        
        int a,b,x,y;
        int c = 1;
        String term[] = new String[3];
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st = br.readLine();
        StringTokenizer tokenizer = new StringTokenizer(st, " ");
	while(tokenizer.hasMoreTokens()) {
	    term[c] = tokenizer.nextToken();
	    c++;
	}

        a = Integer.parseInt(term[1]);
        b = Integer.parseInt(term[2]);
        x = a*b;
        y = 2*a + 2*b;
        System.out.println(x+" "+y);        
    
    }
    
} import java.io.*; io.* java import java.util.StringTokenizer; StringTokenizer java.util public class Main {

    public static void main(String[] args) throws IOException  {
        
        int a,b,x,y;
        int c = 1;
        String term[] = new String[3];
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st = br.readLine();
        StringTokenizer tokenizer = new StringTokenizer(st, " ");
	while(tokenizer.hasMoreTokens()) {
	    term[c] = tokenizer.nextToken();
	    c++;
	}

        a = Integer.parseInt(term[1]);
        b = Integer.parseInt(term[2]);
        x = a*b;
        y = 2*a + 2*b;
        System.out.println(x+" "+y);        
    
    }
    
} Main public static void main(String[] args) throws IOException  {
        
        int a,b,x,y;
        int c = 1;
        String term[] = new String[3];
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st = br.readLine();
        StringTokenizer tokenizer = new StringTokenizer(st, " ");
	while(tokenizer.hasMoreTokens()) {
	    term[c] = tokenizer.nextToken();
	    c++;
	}

        a = Integer.parseInt(term[1]);
        b = Integer.parseInt(term[2]);
        x = a*b;
        y = 2*a + 2*b;
        System.out.println(x+" "+y);        
    
    } main {
        
        int a,b,x,y;
        int c = 1;
        String term[] = new String[3];
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st = br.readLine();
        StringTokenizer tokenizer = new StringTokenizer(st, " ");
	while(tokenizer.hasMoreTokens()) {
	    term[c] = tokenizer.nextToken();
	    c++;
	}

        a = Integer.parseInt(term[1]);
        b = Integer.parseInt(term[2]);
        x = a*b;
        y = 2*a + 2*b;
        System.out.println(x+" "+y);        
    
    } int a a b b x x y; y int c = 1; c 1 String term[] = new String[3]; term new String[3] 3 BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String st = br.readLine(); st br.readLine() br.readLine br StringTokenizer tokenizer = new StringTokenizer(st, " "); tokenizer new StringTokenizer(st, " ") while(tokenizer.hasMoreTokens()) {
	    term[c] = tokenizer.nextToken();
	    c++;
	} tokenizer.hasMoreTokens() tokenizer.hasMoreTokens tokenizer {
	    term[c] = tokenizer.nextToken();
	    c++;
	} term[c] = tokenizer.nextToken() term[c] term c tokenizer.nextToken() tokenizer.nextToken tokenizer c++ c a = Integer.parseInt(term[1]) a Integer.parseInt(term[1]) Integer.parseInt Integer term[1] term 1 b = Integer.parseInt(term[2]) b Integer.parseInt(term[2]) Integer.parseInt Integer term[2] term 2 x = a*b x a*b a b y = 2*a + 2*b y 2*a + 2*b 2*a 2 a 2*b 2 b System.out.println(x+" "+y) System.out.println System.out System System.out x+" "+y x+" "+y x " " y String[] args args public class Main {

    public static void main(String[] args) throws IOException  {
        
        int a,b,x,y;
        int c = 1;
        String term[] = new String[3];
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st = br.readLine();
        StringTokenizer tokenizer = new StringTokenizer(st, " ");
	while(tokenizer.hasMoreTokens()) {
	    term[c] = tokenizer.nextToken();
	    c++;
	}

        a = Integer.parseInt(term[1]);
        b = Integer.parseInt(term[2]);
        x = a*b;
        y = 2*a + 2*b;
        System.out.println(x+" "+y);        
    
    }
    
} public class Main {

    public static void main(String[] args) throws IOException  {
        
        int a,b,x,y;
        int c = 1;
        String term[] = new String[3];
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st = br.readLine();
        StringTokenizer tokenizer = new StringTokenizer(st, " ");
	while(tokenizer.hasMoreTokens()) {
	    term[c] = tokenizer.nextToken();
	    c++;
	}

        a = Integer.parseInt(term[1]);
        b = Integer.parseInt(term[2]);
        x = a*b;
        y = 2*a + 2*b;
        System.out.println(x+" "+y);        
    
    }
    
} Main

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

public class Main {

    public static void main(String[] args) throws IOException  {
        
        int a,b,x,y;
        int c = 1;
        String term[] = new String[3];
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st = br.readLine();
        StringTokenizer tokenizer = new StringTokenizer(st, " ");
	while(tokenizer.hasMoreTokens()) {
	    term[c] = tokenizer.nextToken();
	    c++;
	}

        a = Integer.parseInt(term[1]);
        b = Integer.parseInt(term[2]);
        x = a*b;
        y = 2*a + 2*b;
        System.out.println(x+" "+y);        
    
    }
    
}