x,y = map(int,input().split()) if y >= 10: z = int(y / 10) y -= z * 10 if x == y + z: print('HAPPY DAY\n')