n = int(input())
t = list(map(int, input().split()))
s = list(map(int, input().split()))
p = list(map(int, input().split()))
order = list(range(n))
order.sort(key=lambda i: t[i])
T = 0
ans = []
for i in order:
if t[i] >= T:
ans.append(i + 1)
T = t[i] + s[i]
elif T - t[i] <= p[i]:
ans.append(i + 1)
T += s[i]
print(len(ans))
print(*ans)