PROGRAM IfAmbiguity(Input, Output);
    VAR
        I, J: Integer;
BEGIN
    Write('I = ');
    ReadLn(I);
    Write('J = ');
    ReadLn(J);

    IF I = 5 THEN
        IF J = 10 THEN
            WriteLn('>')
        ELSE
            IF J = 15 THEN
                WriteLn('>>')
            ELSE
                WriteLn('>>>')
    ELSE
        WriteLn('Error!')
END.
