import java.util.Scanner;
public class Main {
    
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
    int i=scanner.nextInt();
    int b=scanner.nextInt();
    int c=i*b;
    int d=(i+b)*2;
    System.out.println(c+" "+d );
    }
} import java.util.Scanner; Scanner java.util public class Main {
    
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
    int i=scanner.nextInt();
    int b=scanner.nextInt();
    int c=i*b;
    int d=(i+b)*2;
    System.out.println(c+" "+d );
    }
} Main public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
    int i=scanner.nextInt();
    int b=scanner.nextInt();
    int c=i*b;
    int d=(i+b)*2;
    System.out.println(c+" "+d );
    } main {
        Scanner scanner = new Scanner(System.in);
    int i=scanner.nextInt();
    int b=scanner.nextInt();
    int c=i*b;
    int d=(i+b)*2;
    System.out.println(c+" "+d );
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int i=scanner.nextInt(); i scanner.nextInt() scanner.nextInt scanner int b=scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int c=i*b; c i*b i b int d=(i+b)*2; d (i+b)*2 (i+b) i b 2 System.out.println(c+" "+d ) System.out.println System.out System System.out c+" "+d c+" "+d c " " d String[] args args public class Main {
    
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
    int i=scanner.nextInt();
    int b=scanner.nextInt();
    int c=i*b;
    int d=(i+b)*2;
    System.out.println(c+" "+d );
    }
} public class Main {
    
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
    int i=scanner.nextInt();
    int b=scanner.nextInt();
    int c=i*b;
    int d=(i+b)*2;
    System.out.println(c+" "+d );
    }
} Main
import java.util.Scanner;
public class Main {
    
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
    int i=scanner.nextInt();
    int b=scanner.nextInt();
    int c=i*b;
    int d=(i+b)*2;
    System.out.println(c+" "+d );
    }
}