front and back dp(334,680の該当)