# Arup Guha
# 12/9/2025
# Solution to 2025 UCF HS Online D1 Problem G/D2 Problem E: Ranged Array

# Get the input.
n = int(input())
vals = [int(x) for x in input().split()]

# This is useful.
tot = sum(vals)

# We'll set it to false later if it's not.
res = True

# Just check each value. Easy to get sum of rest via subtraction.
for i in range(n):
    if (tot-vals[i])%vals[i] != 0:
        res = False

# Ta da!
if res:
    print("ranged")
else:
    print("deranged")
