sz = int(input(""))
h = input("")
v = input("")
h = h.split(" ")
v = v.split(" ")
for x in range(sz):
h[x] = int(h[x])
v[x] = int(v[x])
if sum(h) > sum(v):
print("Verstappen")
else:
print("Hamilton")
if min(h) > min(v):
print("Verstappen")
else:
print("Hamilton")
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 24ms | 16528 KiB | ||||
2 | Accepted | 17ms | 16768 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 17ms | 17188 KiB | ||||
4 | Accepted | 17ms | 17164 KiB | ||||
5 | Accepted | 17ms | 17456 KiB | ||||
6 | Accepted | 17ms | 17548 KiB | ||||
subtask3 | 15/15 | ||||||
7 | Accepted | 17ms | 17484 KiB | ||||
8 | Accepted | 17ms | 17464 KiB | ||||
9 | Accepted | 17ms | 17340 KiB | ||||
10 | Accepted | 17ms | 17860 KiB | ||||
11 | Accepted | 17ms | 18028 KiB | ||||
subtask4 | 20/20 | ||||||
12 | Accepted | 17ms | 18376 KiB | ||||
13 | Accepted | 17ms | 18484 KiB | ||||
14 | Accepted | 17ms | 18216 KiB | ||||
15 | Accepted | 17ms | 18440 KiB | ||||
16 | Accepted | 17ms | 18292 KiB | ||||
17 | Accepted | 17ms | 18168 KiB | ||||
18 | Accepted | 17ms | 18704 KiB | ||||
19 | Accepted | 17ms | 18584 KiB | ||||
subtask5 | 55/55 | ||||||
20 | Accepted | 17ms | 18756 KiB | ||||
21 | Accepted | 17ms | 18720 KiB | ||||
22 | Accepted | 17ms | 18720 KiB | ||||
23 | Accepted | 17ms | 18724 KiB | ||||
24 | Accepted | 17ms | 18740 KiB | ||||
25 | Accepted | 17ms | 18612 KiB | ||||
26 | Accepted | 17ms | 18712 KiB | ||||
27 | Accepted | 17ms | 18756 KiB | ||||
28 | Accepted | 17ms | 18936 KiB |