data = input()
mid = len(data) // 2
lsum = 0
rsum = 0
for l in range(mid):
lsum += int(data[l])
for r in range(mid, len(data)):
rsum += int(data[r])
if lsum == rsum:
print('LUCKY')
else:
print('READY')
data = input()
mid = len(data) // 2
summary = 0
for l in range(mid):
summary += int(data[l])
for r in range(mid, len(data)):
summary += int(data[r])
if summary == 0:
print('LUCKY')
else:
print('READY')