      IDENTIFICATION DIVISION.
      PROGRAM-ID. 057A.
      DATA DIVISION.
      WORKING-STORAGE SECTION.
      01 INP PIC X(100).
      01 A   PIC 9(2).
      01 B   PIC 9(2).
      01 ANS PIC 9(2).
      01 ANSS PIC Z(2).
      
      PROCEDURE DIVISION.
      ACCEPT INP.
      UNSTRING INP DELIMITED BY " "
      INTO A
           B.
      COMPUTE ANS = A + B
      IF ANS > 23
      THEN
      	COMPUTE ANS = ANS - 24
        DISPLAY ANS
      ELSE
      	DISPLAY ANS
      END-IF.
      
      STOP RUN.