n = int(input())
v = []
h = []
vv = input().split()
hh = input().split()
for i in range(n):
vv[i] = int(vv[i])
for i in range(n):
hh[i] = int(hh[i])
if sum(vv)>sum(hh):
print("Verstappen")
else:
print("Hamilton")
if max(vv)<max(hh):
print("Verstappen")
else:
print("Hamilton")
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 11020 KiB | ||||
2 | Accepted | 17ms | 11432 KiB | ||||
subtask2 | 0/10 | ||||||
3 | Wrong answer | 17ms | 11576 KiB | ||||
4 | Wrong answer | 18ms | 11948 KiB | ||||
5 | Wrong answer | 17ms | 12064 KiB | ||||
6 | Wrong answer | 17ms | 12300 KiB | ||||
subtask3 | 0/15 | ||||||
7 | Wrong answer | 17ms | 12592 KiB | ||||
8 | Accepted | 17ms | 12692 KiB | ||||
9 | Accepted | 17ms | 12620 KiB | ||||
10 | Wrong answer | 17ms | 12780 KiB | ||||
11 | Wrong answer | 17ms | 12780 KiB | ||||
subtask4 | 0/20 | ||||||
12 | Wrong answer | 17ms | 12944 KiB | ||||
13 | Accepted | 17ms | 12848 KiB | ||||
14 | Wrong answer | 17ms | 13228 KiB | ||||
15 | Wrong answer | 17ms | 12940 KiB | ||||
16 | Accepted | 17ms | 13304 KiB | ||||
17 | Accepted | 17ms | 13172 KiB | ||||
18 | Accepted | 17ms | 13568 KiB | ||||
19 | Wrong answer | 17ms | 13532 KiB | ||||
subtask5 | 0/55 | ||||||
20 | Accepted | 17ms | 13416 KiB | ||||
21 | Accepted | 17ms | 13344 KiB | ||||
22 | Wrong answer | 17ms | 13704 KiB | ||||
23 | Accepted | 17ms | 13848 KiB | ||||
24 | Accepted | 17ms | 13732 KiB | ||||
25 | Wrong answer | 17ms | 13804 KiB | ||||
26 | Accepted | 17ms | 13744 KiB | ||||
27 | Accepted | 17ms | 13968 KiB | ||||
28 | Accepted | 17ms | 13780 KiB |