V,A,B = [int(i) for i in input().split()]
F,C,D = [int(i) for i in input().split()]
if V == (C+D)//2 and F == (A+B)//2 and B-A == D-C:
print('IGEN')
else:
print('NEM')
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 16ms | 2872 KiB | ||||
2 | Accepted | 16ms | 3060 KiB | ||||
subtask2 | 20/20 | ||||||
3 | Accepted | 17ms | 3072 KiB | ||||
4 | Accepted | 16ms | 2872 KiB | ||||
5 | Accepted | 14ms | 3012 KiB | ||||
6 | Accepted | 14ms | 2872 KiB | ||||
7 | Accepted | 16ms | 3028 KiB | ||||
8 | Accepted | 17ms | 3080 KiB | ||||
9 | Accepted | 16ms | 2960 KiB | ||||
10 | Accepted | 17ms | 3080 KiB | ||||
11 | Accepted | 17ms | 2876 KiB | ||||
12 | Accepted | 16ms | 2880 KiB | ||||
subtask3 | 80/80 | ||||||
13 | Accepted | 17ms | 2960 KiB | ||||
14 | Accepted | 16ms | 2924 KiB | ||||
15 | Accepted | 16ms | 3072 KiB | ||||
16 | Accepted | 17ms | 2880 KiB | ||||
17 | Accepted | 17ms | 3056 KiB | ||||
18 | Accepted | 16ms | 2872 KiB | ||||
19 | Accepted | 14ms | 2872 KiB | ||||
20 | Accepted | 16ms | 2872 KiB | ||||
21 | Accepted | 16ms | 2872 KiB | ||||
22 | Accepted | 14ms | 2960 KiB | ||||
23 | Accepted | 16ms | 2864 KiB | ||||
24 | Accepted | 16ms | 3088 KiB | ||||
25 | Accepted | 16ms | 2968 KiB | ||||
26 | Accepted | 16ms | 3076 KiB | ||||
27 | Accepted | 17ms | 2872 KiB | ||||
28 | Accepted | 17ms | 2876 KiB | ||||
29 | Accepted | 16ms | 3068 KiB | ||||
30 | Accepted | 16ms | 2872 KiB | ||||
31 | Accepted | 14ms | 2872 KiB | ||||
32 | Accepted | 16ms | 2872 KiB | ||||
33 | Accepted | 16ms | 3268 KiB | ||||
34 | Accepted | 16ms | 2872 KiB | ||||
35 | Accepted | 16ms | 2876 KiB | ||||
36 | Accepted | 16ms | 3260 KiB | ||||
37 | Accepted | 16ms | 2880 KiB |