n = int(input())
v = []
h = []
hh = input().split()
vv = 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 min(vv)<min(hh):
print("Verstappen")
else:
print("Hamilton")
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 11020 KiB | ||||
2 | Accepted | 17ms | 11084 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 17ms | 11236 KiB | ||||
4 | Accepted | 17ms | 11692 KiB | ||||
5 | Accepted | 17ms | 12096 KiB | ||||
6 | Accepted | 17ms | 12236 KiB | ||||
subtask3 | 15/15 | ||||||
7 | Accepted | 17ms | 12356 KiB | ||||
8 | Accepted | 17ms | 12728 KiB | ||||
9 | Accepted | 17ms | 12892 KiB | ||||
10 | Accepted | 17ms | 12960 KiB | ||||
11 | Accepted | 17ms | 12916 KiB | ||||
subtask4 | 20/20 | ||||||
12 | Accepted | 17ms | 12828 KiB | ||||
13 | Accepted | 17ms | 13232 KiB | ||||
14 | Accepted | 17ms | 13200 KiB | ||||
15 | Accepted | 17ms | 13432 KiB | ||||
16 | Accepted | 17ms | 13388 KiB | ||||
17 | Accepted | 17ms | 13780 KiB | ||||
18 | Accepted | 17ms | 13616 KiB | ||||
19 | Accepted | 17ms | 13824 KiB | ||||
subtask5 | 55/55 | ||||||
20 | Accepted | 17ms | 13496 KiB | ||||
21 | Accepted | 17ms | 13796 KiB | ||||
22 | Accepted | 17ms | 14108 KiB | ||||
23 | Accepted | 17ms | 14208 KiB | ||||
24 | Accepted | 17ms | 14072 KiB | ||||
25 | Accepted | 17ms | 14216 KiB | ||||
26 | Accepted | 17ms | 13976 KiB | ||||
27 | Accepted | 17ms | 14124 KiB | ||||
28 | Accepted | 17ms | 14164 KiB |