kor = input()
h, v = [int(i) for i in input().split(' ')], [int(i) for i in input().split(' ')]
hs, hm = sum(h), min(h)
vs, vm = sum(v), min(v)
print('Hamilton' if hs < vs else 'Verstappen')
print('Hamilton' if hm < vm else 'Verstappen')
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 17ms | 2960 KiB | ||||
2 | Accepted | 18ms | 2916 KiB | ||||
subtask2 | 10/10 | ||||||
3 | Accepted | 17ms | 2952 KiB | ||||
4 | Accepted | 17ms | 2916 KiB | ||||
5 | Accepted | 17ms | 2916 KiB | ||||
6 | Accepted | 18ms | 3044 KiB | ||||
subtask3 | 15/15 | ||||||
7 | Accepted | 17ms | 2972 KiB | ||||
8 | Accepted | 18ms | 2992 KiB | ||||
9 | Accepted | 17ms | 2964 KiB | ||||
10 | Accepted | 17ms | 2936 KiB | ||||
11 | Accepted | 17ms | 2920 KiB | ||||
subtask4 | 20/20 | ||||||
12 | Accepted | 17ms | 3004 KiB | ||||
13 | Accepted | 18ms | 3004 KiB | ||||
14 | Accepted | 18ms | 3108 KiB | ||||
15 | Accepted | 18ms | 2984 KiB | ||||
16 | Accepted | 18ms | 2916 KiB | ||||
17 | Accepted | 17ms | 2916 KiB | ||||
18 | Accepted | 17ms | 2960 KiB | ||||
19 | Accepted | 17ms | 2916 KiB | ||||
subtask5 | 55/55 | ||||||
20 | Accepted | 18ms | 2972 KiB | ||||
21 | Accepted | 18ms | 2916 KiB | ||||
22 | Accepted | 17ms | 3180 KiB | ||||
23 | Accepted | 18ms | 2956 KiB | ||||
24 | Accepted | 17ms | 2960 KiB | ||||
25 | Accepted | 17ms | 2844 KiB | ||||
26 | Accepted | 18ms | 3044 KiB | ||||
27 | Accepted | 18ms | 2916 KiB | ||||
28 | Accepted | 17ms | 2916 KiB |