diff --git a/solutions/python/456A.py b/solutions/python/456A.py new file mode 100644 index 0000000..47dcc08 --- /dev/null +++ b/solutions/python/456A.py @@ -0,0 +1,15 @@ +import sys + +n = int(input()) + +laptops = [] + +for _ in range(n): + laptops.append([int(d) for d in input().split(' ')]) + +laptops = sorted(laptops, key=lambda x: x[0]) + +if any(laptops[i][1] > laptops[i+1][1] for i in range(n-1)): + print('Happy Alex') +else: + print('Poor Alex')