T = int(input())
for i in range(T):
F = int(input())
D = [25 if i=='1' else [25, 18, 15, 12, 10, 8, 6, 4, 2, 1][int(i)-1] if ((i>'1' and i<='9') or i=='10') else 0 for i in input().split(' ')]
# print(D)
Dnyer = D.count(25)
F = Dnyer*18+(F-Dnyer)*25
# print(sum(D), F)
print('Champion' if sum(D) >= F else 'Practice harder')
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Runtime error | 17ms | 3044 KiB | ||||
subtask2 | 0/20 | ||||||
2 | Runtime error | 17ms | 3044 KiB | ||||
3 | Accepted | 26ms | 3044 KiB | ||||
subtask3 | 20/20 | ||||||
4 | Accepted | 43ms | 3104 KiB | ||||
5 | Accepted | 43ms | 3048 KiB | ||||
6 | Accepted | 41ms | 2952 KiB | ||||
7 | Accepted | 34ms | 3080 KiB | ||||
subtask4 | 0/60 | ||||||
8 | Runtime error | 18ms | 2956 KiB | ||||
9 | Runtime error | 17ms | 2956 KiB | ||||
10 | Runtime error | 18ms | 3100 KiB | ||||
11 | Runtime error | 17ms | 3316 KiB |