#include #define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl; using namespace std; typedef long long int ll; int dp[2000]; int main(){ int i,j,k,l; int m,n; cin >> n; int in; for (i=0;i