	  IDENTIFICATION DIVISION.
      PROGRAM-ID. 044A.
      DATA DIVISION.
      WORKING-STORAGE SECTION.
      01 N PIC 9(5).
      01 K PIC 9(5).
      01 X PIC 9(5).
      01 Y PIC 9(5).
      01 ANS PIC 9(9).
      01 ANSS PIC Z(9).
      
      PROCEDURE DIVISION.
      ACCEPT N FROM SYSIN.
      ACCEPT K FROM SYSIN.
      ACCEPT X FROM SYSIN.
      ACCEPT Y FROM SYSIN.
      
      COMPUTE ANS = K * X + ( N - K ) * Y.
      MOVE ANS TO ANSS.
      DISPLAY ANSS.
      
      STOP RUN.