#include <iostream>
#include <fstream>
using namespace std;
int x[11], y[11];
int main()
{
ifstream f("blackfriday.in");
ofstream g("blackfriday.out");
int n, i, ind;
double p, pmax;
f >> n;
for (i=1; i<=n; ++i) f >> x[i];
for (i=1; i<=n; ++i) f >> y[i];
pmax=(double)(x[1]-y[1])/x[1]*100; ind=1;
for (i=2; i<=n; ++i)
{
p=(double)(x[i]-y[i])/x[i]*100;
if (p>pmax) {pmax=p; ind =i;}
}
g << ind;
return 0;
}