Now, program passes the test024.