int calcolo(int n, int s[], int h[], int giorno, long long tempo, bool nulla = false)
{
	if (giorno == n){
		return tempo;
	}
	
	int super, hyper, niente;
	
	if (!nulla){
		super = calcolo(n, s, h, (giorno+1), tempo+s[giorno]);
		niente = calcolo(n, s, h, (giorno+1), tempo, true);
		
		if (super >= niente) return super;
		else return niente;
	}
	else{
		return hyper = calcolo(n, s, h, (giorno+1), tempo+h[giorno]);
	}
}

int tempo_massimo(int N, int a[], int b[])
{	
    return calcolo(N, a, b, 0, 0);
}



