Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
465 B
1
Indexable
Never
# input variable
amount = int(input())
# Create a list to collect the names
names = list()
# Another list for sorting the names
sort = list()
# Creating a loop to collect and save the names
for i in range(amount):
    name = input().upper()
    names.append(name)
    sort.append(name)
# Sorting the list sort
sort.sort()
# Writing the rule/logic
if names == sort:
    print("INCREASING")
elif names[::-1] == sort:
    print("DECREASING")
else:
    print("NEITHER")