#include <bits/stdc++.h>

using namespace std;
const int N = 1e3 + 5;

int a[N], b[N];
int n;

int main()
{
	int aa, bb;
	cin >> n;
	
	for (int i = 0; i < n; i++) cin >> a[i];
	for (int i = 0; i < n; i++) cin >> b[i];
	sort(a, a + n); sort(b, b + n);
	if (a[n - 1] <= b[0]) cout << b[0] - a[n - 1] + 1 << endl;
	else cout << 0 << endl;
	
	return 0;
}
#ifdef DBG_MACRO_NO_WARNING
#include <dbg.h>
#else
#define dbg(...) ((void)0)
#endif
#include <bits/stdc++.h>
#define all(c) begin(c), end(c)
#define isz(c) (int)(c).size()

using namespace std;
using ll = long long;
using ii = pair<int, int>;
using vi = vector<int>;

int main(void)
{
    ios::sync_with_stdio(false), cin.tie(NULL);
    int t;
    cin >> t;
    while (t--)
    {
        ll n;
        cin >> n;
        if (n % 2 == 0)
        {
            if (n % 4 == 0)
                cout << "Even" << endl;
            else
                cout << "Same" << endl;
        }
        else
            cout << "Odd" << endl;
    }
    return 0;
}
