#include <iostream>
#include <bits/stdc++.h>
#include <algorithm>
#include <vector>
#include <map>
#include <stack>
#include <list>
#include <iostream>
#include <string>
#include <map>
using namespace std;
int main()
{
long long round;
scanf("%lld", &round);
vector<long long> lina, abdullah;
for (int i = 0; i < round; ++i)
{
long long temp; scanf("%lld", &temp);
lina.emplace_back(temp);
}
for (int i = 0; i < round; ++i)
{
long long temp; scanf("%lld", &temp);
abdullah.emplace_back(temp);
}
int cLina = 0, cAbdullah = 0;
for (int i = 0; i < round; ++i)
{
if (lina[i] > abdullah[i])
++cLina;
else if (lina[i] < abdullah[i])
++cAbdullah;
}
if (cLina > cAbdullah)
printf("1\n");
else if (cAbdullah > cLina)
printf("-1\n");
return 0;
}
Copy