#include int main(void){ int i,n; int evenodd = 0; int maxSpace = 0; int a[1010], b[1010]; long long int ans = 0; scanf("%d", &n); for(i=0;i