document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. import java.util.*;
  2. public class cpromF {
  3.      public static void main(String [] args) {
  4.         Scanner scn = new Scanner(System.in);
  5.         int outerLength = scn.nextInt();
  6.         int outerWidth = scn.nextInt();
  7.         int innerLength = scn.nextInt();
  8.         int innerWidth = scn.nextInt();
  9.         int outerAreaFull = outerLength * outerWidth;
  10.         int outerSubArea = 7 * (outerWidth - 3);
  11.         int outerArea = outerAreaFull - outerSubArea;
  12.         int areaInner = innerLength * innerWidth;
  13.         int totalArea = outerArea - areaInner;
  14.         System.out.print(outerArea +"\\n" +areaInner +"\\n" +totalArea);
  15.      }
  16. }
');