front and back dp(19,385の該当)