int calcolo(int n, int s[], int h[], int giorno, long long tempo)
{
	if (giorno >= n){
		return tempo;
	}
	
	int super, hyper;
	
	super = calcolo(n, s, h, (giorno+1), tempo+s[giorno]);
	hyper = calcolo(n, s, h, (giorno+2), tempo+h[giorno+1]);
	
	if (super >= hyper) return super;
	else return hyper;
}

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



