front and back dp(3,699の該当)