
import java.io.*;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		int answer = 0;
		int mawari = 0;
		Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int a = Integer.parseInt(s);
        String k = scan.next();
        int b = Integer.parseInt(k);      
        
        answer = a*b;
        mawari = a+a+b+b;
        System.out.print(answer + " ");
        System.out.println(mawari);
		
	}
} import java.io.*; io.* java import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		int answer = 0;
		int mawari = 0;
		Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int a = Integer.parseInt(s);
        String k = scan.next();
        int b = Integer.parseInt(k);      
        
        answer = a*b;
        mawari = a+a+b+b;
        System.out.print(answer + " ");
        System.out.println(mawari);
		
	}
} Main public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		int answer = 0;
		int mawari = 0;
		Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int a = Integer.parseInt(s);
        String k = scan.next();
        int b = Integer.parseInt(k);      
        
        answer = a*b;
        mawari = a+a+b+b;
        System.out.print(answer + " ");
        System.out.println(mawari);
		
	} main {
		// TODO Auto-generated method stub
		int answer = 0;
		int mawari = 0;
		Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int a = Integer.parseInt(s);
        String k = scan.next();
        int b = Integer.parseInt(k);      
        
        answer = a*b;
        mawari = a+a+b+b;
        System.out.print(answer + " ");
        System.out.println(mawari);
		
	} int answer = 0; answer 0 int mawari = 0; mawari 0 Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.next(); s scan.next() scan.next scan int a = Integer.parseInt(s); a Integer.parseInt(s) Integer.parseInt Integer s String k = scan.next(); k scan.next() scan.next scan int b = Integer.parseInt(k); b Integer.parseInt(k) Integer.parseInt Integer k answer = a*b answer a*b a b mawari = a+a+b+b mawari a+a+b+b b a+a+b+b a a b b System.out.print(answer + " ") System.out.print System.out System System.out answer + " " answer " " System.out.println(mawari) System.out.println System.out System System.out mawari String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		int answer = 0;
		int mawari = 0;
		Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int a = Integer.parseInt(s);
        String k = scan.next();
        int b = Integer.parseInt(k);      
        
        answer = a*b;
        mawari = a+a+b+b;
        System.out.print(answer + " ");
        System.out.println(mawari);
		
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		int answer = 0;
		int mawari = 0;
		Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int a = Integer.parseInt(s);
        String k = scan.next();
        int b = Integer.parseInt(k);      
        
        answer = a*b;
        mawari = a+a+b+b;
        System.out.print(answer + " ");
        System.out.println(mawari);
		
	}
} Main

import java.io.*;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		int answer = 0;
		int mawari = 0;
		Scanner scan = new Scanner(System.in);
        String s = scan.next();
        int a = Integer.parseInt(s);
        String k = scan.next();
        int b = Integer.parseInt(k);      
        
        answer = a*b;
        mawari = a+a+b+b;
        System.out.print(answer + " ");
        System.out.println(mawari);
		
	}
}