solve even-last