IDENTIFICATION                   DIVISION.
PROGRAM-ID.                      ABC_072_A.
ENVIRONMENT                      DIVISION.
DATA                             DIVISION.
WORKING-STORAGE                  SECTION.
    01 INP    PIC X(21).
    01 X      PIC S9(10).
    01 t      PIC 9(10).
    01 ans    PIC X(10).

    01 ZS     PIC Z(10)9.
    01 DUMMY  PIC X(1).

PROCEDURE                        DIVISION.
MAIN.
    ACCEPT INP.

    UNSTRING INP
    DELIMITED BY SPACE
    INTO X t.

    SUBTRACT t FROM X.

    IF X <= 0 THEN
        DISPLAY 0
    ELSE
        MOVE X TO ZS
        PERFORM UNANS
        DISPLAY ans(1:FUNCTION STORED-CHAR-LENGTH(ans))
    END-IF.

    STOP RUN.

UNANS                            SECTION.
    UNSTRING
        ZS DELIMITED BY ALL SPACE
        INTO DUMMY ans
    END-UNSTRING.
