#include #include #include using namespace std; typedef long long ll; ll dp[2][2]; ll n,d; int main(void){ scanf("%lld%lld",&n,&d); dp[0][1]=-20000000; for(int i=0;i