hdu 2647 modified